diff options
author | Stijn Buys <ingar@osirion.org> | 2013-11-03 23:35:59 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-11-03 23:35:59 +0000 |
commit | 8126e1941666f5dccd61e9ecc60db162049bb8ff (patch) | |
tree | 9468363f1670352ec8d5f2155cfcfa77b602d772 /src/game/base/faction.cc | |
parent | fb18eff66171e855e378575b534683e4fb9c20f5 (diff) |
Added initial support for NPC patrol routes,
added support for lawfull/unlawfull factions.
Diffstat (limited to 'src/game/base/faction.cc')
-rw-r--r-- | src/game/base/faction.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/base/faction.cc b/src/game/base/faction.cc index 323a199..80dfc9f 100644 --- a/src/game/base/faction.cc +++ b/src/game/base/faction.cc @@ -52,6 +52,7 @@ bool Faction::init() Faction *faction = 0; std::string strvalue; math::Color colorvalue; + bool b = false; while (inifile.getline()) { @@ -86,6 +87,8 @@ bool Faction::init() } else if (inifile.got_key_color("colorsecond", colorvalue)) { faction->set_color_second(colorvalue); + } else if (inifile.got_key_bool("lawfull", b)) { + faction->set_lawfull(b); } else { inifile.unknown_key(); } @@ -118,6 +121,7 @@ Faction::Faction() : faction_color(), faction_color_second() { + faction_lawfull = true; } Faction::~Faction() |