Skip to content

Commit dbc355e

Browse files
author
Ian Gonzalez Hermosillo
committed
client now visually shows ruins under starting towers
1 parent 439f957 commit dbc355e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

engine/src/main/battlecode/world/GameMapIO.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ public static int serialize(FlatBufferBuilder builder, LiveMap gameMap) {
294294
bodyTypes.add(FlatHelpers.getRobotTypeFromUnitType(robot.type));
295295
bodyLocsXs.add(robot.location.x);
296296
bodyLocsYs.add(robot.location.y);
297+
ruinArray[gameMap.locationToIndex(robot.location)] = true;
297298
}
298299

299300
for (int i = 0; i < gameMap.getWidth() * gameMap.getHeight(); i++) {

0 commit comments

Comments
 (0)