Skip to content

Commit 0876d75

Browse files
committed
cheese as int32array on map
1 parent 57db59a commit 0876d75

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

client/src/playback/Map.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class CurrentMap {
4141
public readonly markers: [Int8Array, Int8Array] // Each team has markers
4242
public readonly ratTrapData: Int8Array
4343
public readonly catTrapData: Int8Array
44-
public readonly cheeseData: Int8Array
44+
public readonly cheeseData: Int32Array
4545
public readonly resourcePatterns: ResourcePatternData[]
4646

4747
get width(): number {
@@ -60,7 +60,7 @@ export class CurrentMap {
6060

6161
this.staticMap = from
6262
this.dirt = new Int8Array(from.initialDirt)
63-
this.cheeseData = new Int8Array(from.cheese)
63+
this.cheeseData = new Int32Array(from.cheese)
6464
this.markers = [new Int8Array(this.width * this.height), new Int8Array(this.width * this.height)]
6565
this.resourcePatterns = []
6666
this.ratTrapData = new Int8Array(this.width * this.height)
@@ -70,7 +70,7 @@ export class CurrentMap {
7070

7171
this.staticMap = from.staticMap
7272
this.dirt = new Int8Array(from.dirt)
73-
this.cheeseData = new Int8Array(from.cheeseData)
73+
this.cheeseData = new Int32Array(from.cheeseData)
7474
this.markers = [new Int8Array(from.markers[0]), new Int8Array(from.markers[1])]
7575

7676
// Assumes ResourcePatternData is immutable

0 commit comments

Comments
 (0)