File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments