diff --git a/src/newgrf.cpp b/src/newgrf.cpp --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -6313,7 +6313,7 @@ bool GetGlobalVariable(byte param, uint3 return true; case 0x0A: // animation counter - *value = _tick_counter; + *value = GB(_tick_counter, 0, 16); return true; case 0x0B: { // TTDPatch version @@ -9814,7 +9814,7 @@ void LoadNewGRF(uint load_index, uint nu Date date = _date; Year year = _cur_year; DateFract date_fract = _date_fract; - uint16 tick_counter = _tick_counter; + uint64 tick_counter = _tick_counter; byte display_opt = _display_opt; if (_networking) {