# HG changeset patch # User sheepluva # Date 1417560920 -3600 # Node ID f2597a21f56275fc2b98786b4e82f9d41dd3f30e # Parent 58cad46782ffaf88d12134275dbff108573184a5 update changelog diff -r 58cad46782ff -r f2597a21f562 ChangeLog.txt --- a/ChangeLog.txt Tue Dec 02 23:33:28 2014 +0100 +++ b/ChangeLog.txt Tue Dec 02 23:55:20 2014 +0100 @@ -40,6 +40,10 @@ SetWaterLine(waterline) -- moves water level to the specified y. the current value is in read-only global waterline SetNextWeapon() -- make current hedgehog switch to next weapon. e.g. use in trainings to preselect weapon SetWeapon(ammoType) -- decide which weapon the current hedgehog should equip + + Map Drawing: + -- to be used in onGameInit() -- first set MapGen to mgDrawn and then use the commands below + AddPoint(x, y [, width [, erase] ]) -- takes x,y location, a width (means start of a new line) and erase (if line should erase, not draw) + FlushPoints() -- makes sure that all the points/lines specified using the command above are actually applied to the map + New global enumerations: Mapgens: mgRandom, mgMaze, mgPerlin, mgDrawn TSprite values diff -r 58cad46782ff -r f2597a21f562 hedgewars/uScript.pas --- a/hedgewars/uScript.pas Tue Dec 02 23:33:28 2014 +0100 +++ b/hedgewars/uScript.pas Tue Dec 02 23:55:20 2014 +0100 @@ -2277,7 +2277,7 @@ function lc_addPoint(L : Plua_State) : LongInt; Cdecl; var np, param: integer; begin - if CheckAndFetchParamCountRange(L, 2, 4, 'AddPoint', 'x, y, width [, erase]', np) then + if CheckAndFetchParamCountRange(L, 2, 4, 'AddPoint', 'x, y [, width [, erase] ]', np) then begin // x param:= lua_tointeger(L,1);