projects
/
potlatch2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d2c3366
)
nnnnngh
author
Richard Fairhurst
<richard@systemed.net>
Wed, 16 Jun 2010 09:56:59 +0000
(09:56 +0000)
committer
Richard Fairhurst
<richard@systemed.net>
Wed, 16 Jun 2010 09:56:59 +0000
(09:56 +0000)
net/systemeD/halcyon/MapPaint.as
patch
|
blob
|
history
diff --git
a/net/systemeD/halcyon/MapPaint.as
b/net/systemeD/halcyon/MapPaint.as
index e67d2901e09c2ad9a177011936f0146b29e4907f..9c4f132bb83baaad3bb1c798d7540f42bb892702 100644
(file)
--- a/
net/systemeD/halcyon/MapPaint.as
+++ b/
net/systemeD/halcyon/MapPaint.as
@@
-83,10
+83,14
@@
package net.systemeD.halcyon {
}
// update index
}
// update index
+ // (we do it in this rather indirect way because if you alter sublayerIndex directly
+ // within the loop, it confuses the iterator)
+ var toUpdate:Array=[];
for (index in sublayerIndex) {
ix=Number(index);
for (index in sublayerIndex) {
ix=Number(index);
- if (ix>sublayer) {
sublayerIndex[index]++
; }
+ if (ix>sublayer) {
toUpdate.push(index)
; }
}
}
+ for each (index in toUpdate) { sublayerIndex[index]++; }
sublayerIndex[sublayer]=lowestAbovePos;
}
sublayerIndex[sublayer]=lowestAbovePos;
}