# HG changeset patch # User sheepluva # Date 1441159404 -7200 # Node ID 506b6184f4afa0bdaae08903f2eb313aa7829017 # Parent 659427d9fd17af3ade2d3283b46c71eb54ad7029 fix on-code documentation of EraseSprite diff -r 659427d9fd17 -r 506b6184f4af hedgewars/uScript.pas --- 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);