Fixed objectives disappearing for no reason
This commit is contained in:
@@ -482,7 +482,9 @@ public class MapObjectivesDialog extends BaseDialog{
|
|||||||
loop:
|
loop:
|
||||||
for(int y = 0; y < rows; y++){
|
for(int y = 0; y < rows; y++){
|
||||||
for(int x = 0; x < columns; x++){
|
for(int x = 0; x < columns; x++){
|
||||||
canvas.tilemap.createTile(x * w, bounds - 1 - y * 2, objectives.get(i++));
|
if(canvas.tilemap.createTile(x * w, y, objectives.get(i))){
|
||||||
|
i++;
|
||||||
|
}
|
||||||
if(i >= objectives.size) break loop;
|
if(i >= objectives.size) break loop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user