File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export class GameImpl implements Game {
7070 private _height : number ;
7171 _terraNullius : TerraNulliusImpl ;
7272
73- private firstHumanSpawnTurn : number ;
73+ private firstHumanSpawnTick : number ;
7474
7575 allianceRequests : AllianceRequestImpl [ ] = [ ] ;
7676 alliances_ : AllianceImpl [ ] = [ ] ;
@@ -345,16 +345,16 @@ export class GameImpl implements Game {
345345 return false ;
346346 }
347347 if ( this . config ( ) . gameConfig ( ) . gameType === GameType . Singleplayer ) {
348- if ( ! this . firstHumanSpawnTurn ) {
349- this . firstHumanSpawnTurn = Array . from ( this . _players . values ( ) ) . some (
348+ if ( ! this . firstHumanSpawnTick ) {
349+ this . firstHumanSpawnTick = Array . from ( this . _players . values ( ) ) . some (
350350 ( player ) => player . type ( ) === PlayerType . Human && player . hasSpawned ( ) ,
351351 )
352352 ? this . _ticks
353353 : 0 ;
354354 } else {
355355 return (
356356 this . _ticks <=
357- this . firstHumanSpawnTurn +
357+ this . firstHumanSpawnTick +
358358 this . config ( ) . numSingleplayerGracePeriodTurns ( )
359359 ) ;
360360 }
Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ export class GameView implements GameMap {
476476
477477 private _map : GameMap ;
478478
479- private firstHumanSpawnTurn : number ;
479+ private firstHumanSpawnTick : number ;
480480
481481 constructor (
482482 public worker : WorkerClient ,
@@ -662,16 +662,16 @@ export class GameView implements GameMap {
662662 return false ;
663663 }
664664 if ( this . _config . gameConfig ( ) . gameType === GameType . Singleplayer ) {
665- if ( ! this . firstHumanSpawnTurn ) {
666- this . firstHumanSpawnTurn = Array . from ( this . _players . values ( ) ) . some (
665+ if ( ! this . firstHumanSpawnTick ) {
666+ this . firstHumanSpawnTick = Array . from ( this . _players . values ( ) ) . some (
667667 ( player ) => player . type ( ) === PlayerType . Human && player . hasSpawned ( ) ,
668668 )
669669 ? this . ticks ( )
670670 : 0 ;
671671 } else {
672672 return (
673673 this . ticks ( ) <=
674- this . firstHumanSpawnTurn +
674+ this . firstHumanSpawnTick +
675675 this . _config . numSingleplayerGracePeriodTurns ( )
676676 ) ;
677677 }
You can’t perform that action at this time.
0 commit comments