v0.4.2: fixed some bugs with tilemap updating
This commit is contained in:
committed by
Evan Debenham
parent
a8e04b51ca
commit
e43e7b995d
@@ -88,11 +88,17 @@ public class Tilemap extends Visual {
|
||||
|
||||
quads = Quad.createSet( size );
|
||||
|
||||
updated.set( 0, 0, mapWidth, mapHeight );
|
||||
updateMap();
|
||||
}
|
||||
|
||||
//forces a full update, including new buffer and culling recalculation
|
||||
public synchronized void updateMap(){
|
||||
updated.set( 0, 0, mapWidth, mapHeight );
|
||||
if (buffer != null) {
|
||||
buffer.delete();
|
||||
}
|
||||
buffer = null;
|
||||
camX = null;
|
||||
}
|
||||
|
||||
public synchronized void updateMapCell(int cell){
|
||||
|
||||
Reference in New Issue
Block a user