No it doesn't always = year - 1 because when the function is finished year.old = year.
Here's the CAP--copyright me--produced for the LD48 competition.
By the way, the code is all basically the last 24 hours, that's why it's messy. I know that. I just want to know why it doesn't work.
To see the problem, press "Nuke 'em", then press "Space" to pass turns. When "Year" goes up, the red wave of radiation is supposed to move down and a random population operation is supposed to happen. They don't.
UPDATE: I might have fixed the problem. I deleted the other qualifying arguments. Why is this happening?
UPDATE2: I think it's fixed. I'll post the CAP again if I need more help.