nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1338725
)
gamnit: don't remap sprites removed from a set after their modification
author
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 20 Jul 2017 18:44:22 +0000
(14:44 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Fri, 28 Jul 2017 19:06:28 +0000
(15:06 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/gamnit/flat/flat_core.nit
patch
|
blob
|
history
diff --git
a/lib/gamnit/flat/flat_core.nit
b/lib/gamnit/flat/flat_core.nit
index
932a584
..
dcb11f6
100644
(file)
--- a/
lib/gamnit/flat/flat_core.nit
+++ b/
lib/gamnit/flat/flat_core.nit
@@
-961,6
+961,10
@@
class SpriteSet
do
# Remap sprites that may need to change context
for sprite in sprites_to_remap do
+
+ # Skip if it was removed from this set after being modified
+ if sprite.context != self then continue
+
unmap_sprite sprite
map_sprite sprite
end