Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/base/game.cc')
-rw-r--r--src/game/base/game.cc17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc
index cbcafaf..79fd167 100644
--- a/src/game/base/game.cc
+++ b/src/game/base/game.cc
@@ -100,20 +100,11 @@ void Game::func_join(core::Player *player, std::string const &args)
player->send("^BYou received " + aux::article(Default::shipmodel->name()));
player->sound("game/buy-ship");
-
- // apply default reputation
- Faction *faction_default = Faction::find("default");
- if (faction_default) {
- player->reputation().assign(faction_default->reputation());
- }
- }
-
-
- // DEBUG
- for (core::Reputation::FactionReps::iterator rip = player->reputation().factionreps().begin(); rip != player->reputation().factionreps().end(); ++rip) {
- con_debug << " reputation with " << (*rip)->label() << " " << (*rip)->reputation() << std::endl;
+
+ player->reputation().clear();
+ Faction::apply_default(player->reputation());
}
-
+
player->set_dirty();
}