Author Topic: Unneeded factions are loaded (fixed)  (Read 2486 times)

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Unneeded factions are loaded (fixed)
« 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 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.
« Last Edit: 1 January 1970, 00:00:00 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

weedkiller

  • Draco Rider
  • *****
  • Posts: 277
    • View Profile
(No subject)
« Reply #1 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...
« Last Edit: 1 January 1970, 00:00:00 by weedkiller »

daniel.santos

  • Guest
(No subject)
« Reply #2 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!!
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

 

anything