diff -r 8ea636ce120a -r de52c2b8b773 hedgewars/uScript.pas --- a/hedgewars/uScript.pas Wed Apr 08 15:04:48 2015 -0400 +++ b/hedgewars/uScript.pas Wed Apr 08 15:10:44 2015 -0400 @@ -2218,13 +2218,13 @@ if not lua_isnoneornil(L, 6) then flipHoriz := lua_toboolean(L, 6) else flipHoriz := false; - if not lua_isnoneornil(L, 6) then - flipVert := lua_toboolean(L, 6) + if not lua_isnoneornil(L, 7) then + flipVert := lua_toboolean(L, 7) else flipVert := false; lf:= 0; // accept any amount of landflags, loop is never executed if n>6 - for i:= 6 to n do + for i:= 8 to n do lf:= lf or lua_tointeger(L, i); n:= LuaToSpriteOrd(L, 3, call, params);