[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Enigma-devel] Bugs in init.lua
From: |
Nat Pryce |
Subject: |
[Enigma-devel] Bugs in init.lua |
Date: |
Mon, 13 Oct 2003 14:28:34 +0100 |
I have found two bugs in init.lua in 0.80 beta:
1) The definitions of EASY and DIFFICULT are incorrect. EASY should be 1
(not 0) and DIFFICULT should be 2 (not 1).
2) The function create_checkerboard_floor is incorrect. A corrected version
is below:
function draw_checkerboard_floor( name1, name2, x, y, w, h, attrs)
for i=1,h do
for j=1,w do
if mod(i,2) == mod(j,2) then
set_floor( name1, x+j-1, y+i-1, attrs )
else
set_floor( name2, x+j-1, y+i-1, attrs )
end
end
end
end
_______________________
Dr. Nathaniel Pryce
B13media Ltd.
http://www.b13media.com
+44 (0)7712 526 661
- [Enigma-devel] Bugs in init.lua,
Nat Pryce <=