From e15f5c451fa3105ed628f9f30f4078278bbd8d87 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Thu, 20 Jun 2013 18:18:02 +0400 Subject: [PATCH] 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. --- scripts/devel/find-offsets.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/devel/find-offsets.lua b/scripts/devel/find-offsets.lua index ea5450a58..1ce7a4425 100644 --- a/scripts/devel/find-offsets.lua +++ b/scripts/devel/find-offsets.lua @@ -1350,7 +1350,7 @@ menu, then do as instructed below:]], return false 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 ) ms.found_offset('cur_season_tick', addr) @@ -1382,7 +1382,7 @@ menu, then do as instructed below:]], return false 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 ) ms.found_offset('cur_season', addr)