Update of /cvsroot/wpdev/xmlscripts/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32157
Modified Files:
lightsource.py
Log Message:
bugfixes
Index: lightsource.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/lightsource.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** lightsource.py 13 Oct 2004 19:13:22 -0000 1.11
--- lightsource.py 13 Oct 2004 19:14:35 -0000 1.12
***************
*** 116,119 ****
--- 116,124 ----
return True
+ def update_light(serial):
+ item = wolfpack.finditem(serial)
+ if item:
+ item.update()
+
def onDropOnItem( container, item ):
dropper = item.container
***************
*** 122,127 ****
if item.id in burning and ids.has_key( item.id ):
item.id = ids[item.id]
! #if not wolfpack.utilities.tocontainer(item, container):
! # item.update()
dropper.soundeffect(0x226)
--- 127,131 ----
if item.id in burning and ids.has_key( item.id ):
item.id = ids[item.id]
! wolfpack.queuecode(update_light, (item.serial, ))
dropper.soundeffect(0x226)
|