Fix search for cur_season_tick and cur_season in devel/find-offsets.

It seems the one-off error is a problem with the original
save I used, and not the result of some general behavior.
develop
Alexander Gavrilov 2013-06-20 18:18:02 +04:00
parent 21dc3afede
commit e15f5c451f
1 changed files with 2 additions and 2 deletions

@ -1350,7 +1350,7 @@ menu, then do as instructed below:]],
return false return false
end end
end end
return true, math.floor(((df.global.cur_year_tick+10)%100800)/10) return true, math.floor((df.global.cur_year_tick%100800)/10)
end end
) )
ms.found_offset('cur_season_tick', addr) ms.found_offset('cur_season_tick', addr)
@ -1382,7 +1382,7 @@ menu, then do as instructed below:]],
return false return false
end end
end end
return true, math.floor((df.global.cur_year_tick+10)/100800)%4 return true, math.floor(df.global.cur_year_tick/100800)%4
end end
) )
ms.found_offset('cur_season', addr) ms.found_offset('cur_season', addr)