summaryrefslogtreecommitdiff
path: root/src/account-server
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-03-18 00:53:53 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-03-18 22:17:18 +0100
commit9d6a1f4c881d8a77d7bde3244a6543b0cbe31718 (patch)
tree8d3bc4c565f76a61304342e70d1867bd5ef70e5f /src/account-server
parentc4f3d184abeda63abcfdaa386b4846e94bfed1f9 (diff)
downloadmanaserv-9d6a1f4c881d8a77d7bde3244a6543b0cbe31718.tar.gz
manaserv-9d6a1f4c881d8a77d7bde3244a6543b0cbe31718.tar.bz2
manaserv-9d6a1f4c881d8a77d7bde3244a6543b0cbe31718.tar.xz
manaserv-9d6a1f4c881d8a77d7bde3244a6543b0cbe31718.zip
Improved error handling in chr_shake_screen Lua function
It's better to use luaL_checkint than manually checking and printing out an error, since using the helper function makes a more informative error message. Also, scripts errors need to be raised before constructing objects, since due to the way Lua does error handling the destructors of the objects will not be called. Also fixed an issue with the 4th parameter, which was first cast to integer and then multiplied by 10000. Now the multiplication happens before the casting to integer. Reviewed-by: Crush
Diffstat (limited to 'src/account-server')
0 files changed, 0 insertions, 0 deletions