Update of /cvsroot/wpdev/xmlscripts/scripts/system
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4628/system
Modified Files:
macro_opendoor.py
Log Message:
Door use fixes.
Index: macro_opendoor.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/system/macro_opendoor.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** macro_opendoor.py 7 Jul 2004 03:14:32 -0000 1.2
--- macro_opendoor.py 14 Jul 2004 07:41:03 -0000 1.3
***************
*** 22,26 ****
if not socket.player:
! return 0
char = socket.player
--- 22,26 ----
if not socket.player:
! return False
char = socket.player
***************
*** 29,34 ****
if not doors:
! return 0
reach = 0
for door in doors:
--- 29,35 ----
if not doors:
! return False
+ opendoor = 0
reach = 0
for door in doors:
***************
*** 40,45 ****
reach = 1
if reach == 1:
! events = door.events
! for event in events:
if event == 'door':
opendoor = 1
--- 41,45 ----
reach = 1
if reach == 1:
! for event in door.events:
if event == 'door':
opendoor = 1
|