From af0d672fcb9fb8da583f014b9875350e7480f467 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 3 Oct 2009 21:31:03 +0200 Subject: Some cleanup * Removed unsigned/signed warning by just using signed integers. * Made AccountHandler message handler functions members again instead of static functions. * Renamed 'computer' to 'client' since that is a less confusing name. --- src/scripting/lua.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/scripting/lua.cpp') diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index 38177e98..fe5de77a 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -1035,13 +1035,8 @@ static int being_register(lua_State *s) static int effect_create(lua_State *s) { if (!lua_isnumber(s, 1) || - ( - !lua_isnumber(s, 2) || - !lua_isnumber(s, 3) - ) && ( - !lua_isuserdata(s, 2) - ) - ) + ((!lua_isnumber(s, 2) || !lua_isnumber(s, 3)) + && (!lua_isuserdata(s, 2)))) { raiseScriptError(s, "effect_create called with incorrect parameters."); return 0; -- cgit v1.2.3-70-g09d2