The International Simutrans Forum

Development => Bug Reports => Topic started by: Ranran on October 18, 2020, 06:11:29 AM

Title: Specifying the wrong version number
Post by: Ranran on October 18, 2020, 06:11:29 AM
I happened to notice the typo.

https://github.com/aburch/simutrans/blob/0c45d1a60c3424f1828f596366a67870025a741d/dataobj/environment.cc#L502


if(  file->is_version_atleast(120, 7)  ) {

I think 120 is correct instead of 102.
Title: Re: Specifying the wrong version number
Post by: Dwachs on October 18, 2020, 10:00:11 AM
Thanks for reporting! Not sure what to do. Fixing this typo might make some saves unloadable.
Title: Re: Specifying the wrong version number
Post by: prissi on October 18, 2020, 11:52:17 AM
Only saves that were saved with a nightly between r8573 and release 120.4 r8588 will not be able to load default.sve... That is really not a issue, sicne the environment is not saved in the savegames. The environment is usually only read from the previous version during an update.