mirror of
https://github.com/tonytins/citylimits.git
synced 2025-03-15 12:21:22 +00:00
Fixed month not counting down in GUI
Apparently the reason why the month wasn't counting on the GUI - despite everything I threw at it - was because I had the plus and equal symbols mixed up. Derp.
This commit is contained in:
parent
72e2c96542
commit
7a4619f874
1 changed files with 4 additions and 2 deletions
|
@ -18,12 +18,14 @@ func _resume_rotation():
|
|||
func _on_DayCycle_timeout():
|
||||
|
||||
if SimData.prev_day < 30:
|
||||
SimData.prev_day = SimData.day
|
||||
SimData.day += 1
|
||||
|
||||
if SimData.prev_day == 30:
|
||||
SimData.month =+ 1
|
||||
SimData.prev_month = SimData.month
|
||||
SimData.prev_day = SimData.day
|
||||
SimData.day = 1
|
||||
SimData.prev_month = SimData.month
|
||||
SimData.month += 1
|
||||
SimEvents.emit_signal("budget")
|
||||
|
||||
if SimData.prev_month == 12:
|
||||
|
|
Loading…
Add table
Reference in a new issue