--- 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
--- 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);