Mini-engine progress

but rather that Linux tend to come with a package manager
Ideally. Ubuntu doesn't have SFML 3 yet. Or updated pugixml. Or python 2. You have to build these things from source, because I like the bleeding edge.

everything has to be compiled with that version. Linux doesn't suffer from this
It is said that the Linux C++ std lib is supposed to be ABI compatible. But we always need to build from source or get specific binaries from the distribution's package manager. It's not like on Windows where you can just download latest SFML from the lib's website. Some Linux binaries of various things exist out there, but I think they statically link everything.
 
Something I've just noticed in the original game: see here.

Do you have the same behaviour in your game engine or is it fixed? (Looks like some arrays are not cleared when exiting to the main menu).
Yes, it seems these history variables are never reset in CvPlayer. That's the bug-prone style of code we have here. When resetting a game, maybe they should have just done the equivalent of player = {} to totally reset all member variables instead of manually doing it by hand. Or not use globals, but that would be way more difficult.

C++:
    CvTurnScoreMap m_mapScoreHistory;
    CvTurnScoreMap m_mapEconomyHistory;
    CvTurnScoreMap m_mapIndustryHistory;
    CvTurnScoreMap m_mapAgricultureHistory;
    CvTurnScoreMap m_mapPowerHistory;
    CvTurnScoreMap m_mapCultureHistory;
    CvTurnScoreMap m_mapEspionageHistory;
 
Back
Top Bottom