--- a/hedgewars/uScript.pas Wed Sep 02 01:25:29 2015 +0200
+++ b/hedgewars/uScript.pas Wed Sep 02 04:03:24 2015 +0200
@@ -2325,7 +2325,7 @@
eraseOnLFMatch, onlyEraseLF, flipHoriz, flipVert : boolean;
const
call = 'EraseSprite';
- params = 'x, y, sprite, frameIdx, eraseOnLFMatch, flipHoriz, flipVert, [, landFlag, ... ]';
+ params = 'x, y, sprite, frameIdx, eraseOnLFMatch, onlyEraseLF, flipHoriz, flipVert, [, landFlag, ... ]';
begin
if CheckAndFetchLuaParamMinCount(L, 4, call, params, n) then
begin
@@ -2343,7 +2343,7 @@
else flipVert := false;
lf:= 0;
- // accept any amount of landflags, loop is never executed if n>6
+ // accept any amount of landflags, loop is never executed if n<9
for i:= 9 to n do
lf:= lf or lua_tointeger(L, i);