The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: ceeac on February 23, 2022, 07:24:28 PM

Title: World surface refactor
Post by: ceeac on February 23, 2022, 07:24:28 PM
Continuing from here (https://forum.simutrans.com/index.php/topic,21365.msg198690.html#msg198690):
Quote
simworld.cc contains too much stuff (the game loop, the map, map creation, etc)

Now simworld contains less stuff. :) The new surface_t base class contains all "low-level" map objects like buildings, vehicles, terrain and climates, while the "high-level" stuff like convois, cities, factories etc. stays in karte_t for now.
Title: Re: World surface refactor
Post by: prissi on March 03, 2022, 06:32:56 AM
I see no obvious problems (but only did a quick check).

Not sure what the purpose of reordering the names in the MSVC project files is, because I get always an alphabetic presentation without paths. And the comilation order is also random, sometimes tarting at the end.  If there is a setting to see something else or force compile order, it is extremely well hidden ...

But that should not stop this patch.
Title: Re: World surface refactor
Post by: ceeac on March 05, 2022, 03:56:21 PM
This makes editing the project file manually easier, for example to add a file to compile. Otherwise there is not a huge difference I think.

Submitted in r10536.