Mercurial > traipse_dev
comparison orpg/mapper/miniatures.py @ 21:fdd70f11bc7e traipse_dev
One too many deletes last time. This run tested on Linux and working
author | sirebral |
---|---|
date | Sat, 25 Jul 2009 19:28:21 -0500 |
parents | 072ffc1d466f |
children | 449a8900f9ac |
comparison
equal
deleted
inserted
replaced
20:072ffc1d466f | 21:fdd70f11bc7e |
---|---|
612 self.serial_number = int(xml_dom.getAttribute('serial')) | 612 self.serial_number = int(xml_dom.getAttribute('serial')) |
613 children = xml_dom._get_childNodes() | 613 children = xml_dom._get_childNodes() |
614 for c in children: | 614 for c in children: |
615 action = c.getAttribute("action") | 615 action = c.getAttribute("action") |
616 id = c.getAttribute('id') | 616 id = c.getAttribute('id') |
617 if action == "del": mini = self.get_miniature_by_id(id) | 617 if action == "del": |
618 mini = self.get_miniature_by_id(id) | |
618 if mini: | 619 if mini: |
619 self.miniatures.remove(mini) | 620 self.miniatures.remove(mini) |
620 del mini | 621 del mini |
621 else: self.log.log("Map Synchronization Error :: Update of unknown mini attempted", ORPG_DEBUG) | 622 else: self.log.log("Map Synchronization Error :: Update of unknown mini attempted", ORPG_DEBUG) |
622 elif action == "new": | 623 elif action == "new": |