mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-23 04:01:19 +00:00
21 lines
462 B
Text
21 lines
462 B
Text
-- test script for ELua/Lunatic Interpreter
|
|
|
|
print('--- ELua Test script ---')
|
|
|
|
local i
|
|
|
|
print('tweaking sector pals')
|
|
for i = 0, gv.numsectors/2 do
|
|
sector[i].floorpal = 1;
|
|
sector[i].ceilingpal = 2;
|
|
end
|
|
|
|
print(gv.numsectors)
|
|
print(gv.numwalls)
|
|
|
|
print('--- end test script ---')
|
|
|
|
--sector[-1].ceilingpal = 4; -- this must FAIL!
|
|
--sector[0].wallnum = 0; -- as must this
|
|
--gv.numsectors = 4 -- and this
|
|
--sector[4] = sector[6] -- this is forbidden, too
|