Skip to content
Snippets Groups Projects
Commit 12df5f70 authored by Elias Leinenweber's avatar Elias Leinenweber
Browse files

Fix bugs

-Changement d'infra. sur les cases
-Incrémente plus les tours si on a pas construit
parent c79f6df6
No related merge requests found
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
{ {
public enum Improvement public enum Improvement
{ {
TrainStation,
Path,
Refuge, Refuge,
Path,
Club, Club,
TrainStation,
Factory Factory
} }
} }
\ No newline at end of file
...@@ -85,9 +85,11 @@ namespace Wanderer.view ...@@ -85,9 +85,11 @@ namespace Wanderer.view
int cout = tbCouts[i]; int cout = tbCouts[i];
//Calcul des marks et randonneurs, ajout d'image sur la map //Calcul des marks et randonneurs, ajout d'image sur la map
if (marks >= cout) if (marks >= cout && MapView.SelectedTile.model.Improvement == 0)
{ {
MapView.SelectedTile.Image = b.Image; MapView.SelectedTile.model.Improvement = (Improvement) i;
if (!MapView.SelectedTile.model.HasChanged) return;
tbConstruct[i]++; tbConstruct[i]++;
if (tbConstruct[1] % 5 ==0 && tbConstruct[1]!=0) if (tbConstruct[1] % 5 ==0 && tbConstruct[1]!=0)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment