Skip to content

Commit

Permalink
coorectino toogle bouton otion et incident
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianDrevet committed May 26, 2020
1 parent c64a6e4 commit 98b73fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Game/Interface/MainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public void load_game()

public void menu_options()
{
Options.Pressed = false;
HideAll();
options = true;
Parametres.param_pressed();
Expand Down
2 changes: 1 addition & 1 deletion Game/Vehicules/Vehicules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public void Collision(Area2D area2D)
{
if (area2D.CollisionMask == 1)
{
if (incidents.Nbaccident < incidents.MAX_ACCIDENT)
if (incidents.Nbaccident < incidents.MAX_ACCIDENT+1)
{
incidents.Nbaccident++;
Vector2 position = _planInitial.TileMap2.WorldToMap(Position) - new Vector2(1, 1);
Expand Down

0 comments on commit 98b73fb

Please sign in to comment.