# HG changeset patch # User nemo # Date 1428520244 14400 # Node ID de52c2b8b77377e7bd2da082f4b85a6c438ea1d4 # Parent 8ea636ce120a95ca75d547ad778e1e1e11eb3aee fix copypasta typo, failure to bump offset of lf params 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);