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:
Tony Bark 2021-05-27 12:05:08 -04:00
parent 72e2c96542
commit 7a4619f874

View file

@ -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: