MegaGlest Forum

Archives (read only) => Vanilla Glest => Bug report => Topic started by: hailstone on 25 April 2008, 05:38:14

Title: Unneeded factions are loaded (fixed)
Post by: hailstone on 25 April 2008, 05:38:14
Previously all the factions would load even if there was only one faction type needed. I have fixed this with a patch (http://http://www.mediafire.com/?ks0y42vx27f) for the 176 revision of GAE v0.3.

Changed files:
glest_game/game/game.cpp
glest_game/game/game_settings.h
glest_game/types/tech_tree.cpp
glest_game/types/tech_tree.h
glest_game/world/world.cpp
glest_game/world/world.h

Explanation of fix:
I used the factionNames from gameSettings to find out what factions were needed, then only added one faction of each needed type to the filenames vector. The factions are then loaded.
Title:
Post by: weedkiller on 25 April 2008, 11:53:26
Niice !
that would make playing megapack and stuff much faster, especially over network long loadingtimes could perhaps make problems if the on pc is much faster etc...
Title:
Post by: daniel.santos on 2 May 2008, 20:36:33
Thanks hailstone.  I've got this integrated into GAE 0.2.7, with a few changes to keep with current Glest standards (STL containers).  thanks alot!!