[cleanup patch] Speed variables to sint32. September 23, 2010, 07:29:18 pm Patch will change type of speed related variables to sint32. Quote Selected
Re: [cleanup patch] Speed variables to sint32. Reply #1 – September 24, 2010, 05:37:04 am Why did you change the type of ware_besch_t::get_speed_bonus() ? Imho, this variable is not a speed but rather a positive multiplicator of goods prices.Edit: Incorporated in 3823 (without the change in ware_besch_t::get_speed_bonus). Thank you! Quote Selected Last Edit: September 24, 2010, 05:50:41 am by Dwachs
Re: [cleanup patch] Speed variables to sint32. Reply #2 – September 24, 2010, 09:11:33 pm Debugging time.Code: [Select]#define SPEED_UNLIMITED ((std::numeric_limits<sint32>::max)())Will give us big surprise in speed_to_kmh(SPEED_UNLIMITED).Can we change it to something more sane? 1280000 (== 100000kmh)? Quote Selected
Re: [cleanup patch] Speed variables to sint32. Reply #3 – September 25, 2010, 08:35:46 am Why not. but how does this surprise affect the game? Quote Selected
Re: [cleanup patch] Speed variables to sint32. Reply #4 – September 25, 2010, 08:48:17 am It is not problem in Standard. But it is in Experimental.But it can be logic error somewhere. Leave it as is then. I will find logic error. Quote Selected Last Edit: September 25, 2010, 08:57:28 am by inkelyad
Re: [cleanup patch] Speed variables to sint32. Reply #5 – September 25, 2010, 09:45:54 am If the bug is in the standard code, please report back / post your patch. Quote Selected