Skip to content

Commit

Permalink
Fixed small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
siva-tanikonda committed May 23, 2024
1 parent 5e450f5 commit 83b15a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Training/tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ class AI {
return result;
}
generateVirtualEntities() {
if (!game.title_screen && !game.ship.dead) {
if (!game.title_screen) {
this.ship = new VirtualShip(game.ship);
}
this.dangers = [];
Expand Down
2 changes: 1 addition & 1 deletion Website/Scripts/ai.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class AI {

//Generates all virtual entities to use for the game
generateVirtualEntities() {
if (!game.title_screen && !game.ship.dead) {
if (!game.title_screen) {
this.ship = new VirtualShip(game.ship);
}
this.dangers = [];
Expand Down

0 comments on commit 83b15a1

Please sign in to comment.