by mh » Thu Jan 26, 2012 11:48 pm
I suspect that once upon a time time did begin at 1: there's a "host_time" variable in the engine which is initialized to 1 with a comment on it in Host_InitLocal: "so a think at time 0 won't get called". host_time appears to date from an earlier evolution of the engine and it's use has been completely relegated to the vcr system (does anybody actually use that?) and the totating "Q" logo in the menus - everything else uses realtime (or the appropriate cl.time or sv.time) and the remaining uses of host_time can be easily and painlessly replaced with realtime. Another instance of "multiple globals scattered throughout the engine all of which store broadly the same info and all of which must be kept in sync", although thankfully it's not as bad as some of the others that exist.