summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-01-19 17:50:40 +0000
committerpeter1138 <peter1138@openttd.org>2006-01-19 17:50:40 +0000
commitc56ae910f0487391b0a8ef9f32356795bee88ec9 (patch)
tree458baf2f0c3216b2d748ed0f28bb2c37f51830b4 /misc.c
parent6132d15df90c019804b758dd2846a57c3d819aa9 (diff)
downloadopenttd-c56ae910f0487391b0a8ef9f32356795bee88ec9.tar.xz
(svn r3409) - Change the server advertisement interval to use the frame counter instead
of game days. This allows a paused server to continue to advertise itself. This also fixes advertising for games that start before 1922.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 37256f115..61819cf5d 100644
--- a/misc.c
+++ b/misc.c
@@ -82,7 +82,8 @@ void SetDate(uint date)
_cur_year = ymd.year;
_cur_month = ymd.month;
#ifdef ENABLE_NETWORK
- _network_last_advertise_date = 0;
+ _network_last_advertise_frame = 0;
+ _network_need_advertise = true;
#endif /* ENABLE_NETWORK */
}