diff orpg/mapper/images.py @ 15:cab94a90f9dc traipse_dev

Added 1.8.0 fix to log. Fixed problem with images that do not load the first time. Problem was in the fetching dict. del path instead.
author sirebral
date Tue, 21 Jul 2009 02:34:21 -0500
parents 28ad6bd3ac71
children 83fb9a73a30f
line wrap: on
line diff
--- a/orpg/mapper/images.py	Mon Jul 20 21:25:13 2009 -0500
+++ b/orpg/mapper/images.py	Tue Jul 21 02:34:21 2009 -0500
@@ -118,10 +118,10 @@
                     del self.__fetching[path]
             else:
                 open_rpg.get_component('log').log("Image refused to load or URI did not reference a valid image: " + path, ORPG_GENERAL, True)
-                self.__fetching[path] = False
+                del self.__fetching[path]
         except IOError:
-            self.__fetching[path] = False
-            open_rpg.get_component('log').log("Unable to resolve/open the specified URI; image was NOT laoded: " + path, ORPG_GENERAL, True)
+            del self.__fetching[path]
+            open_rpg.get_component('log').log("Unable to resolve/open the specified URI; image was NOT laoded: " + path, ORPG_GENERAL, False)
         finally:
             self.__lock.release()