Skip to content

Commit b507053

Browse files
committed
fix runtime errors on map load
1 parent d76a35c commit b507053

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function getConfig(): GameConfig {
5252
name: 'demo2',
5353
armies: [
5454
['tank', 'tank', 'tank', 'assault'],
55-
['scout'],//, 'scout', 'tank', 'assault', 'assault', 'assault'],
55+
['scout', 'scout', 'tank', 'assault', 'assault', 'assault'],
5656
['assault', 'assault', 'assault', 'assault', 'assault'],
5757
['scout', 'scout', 'scout', 'assault', 'tank', 'tank']
5858
],

src/controllers/game/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class GameController extends BaseController {
4040
this._mapBuilder.load(mapName);
4141
this._gameSubject.numberOfPlayers = this._mapBuilder.getNumOfPlayers();
4242

43-
this._gameSubject.dispatch(GameEvent.LoadMapCompleted); //ais will be created here.
43+
this._gameSubject.dispatch(GameEvent.LoadMapCompleted);
4444
this._gameSubject.dispatch(GameEvent.TurnStart, 0);
4545
};
4646

0 commit comments

Comments
 (0)