diff options
author | Stijn Buys <ingar@osirion.org> | 2013-11-09 15:22:44 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-11-09 15:22:44 +0000 |
commit | 977a9a68d2465818a331643399a9ecc998d0cbb3 (patch) | |
tree | 5e19904a95119ebc22cfffedcf4bd7b2094e4e31 /src/game | |
parent | d0b6e591fbaf3db5fc9898e75913e57a3c32169a (diff) |
Bumped network protocol to version 27,
send player reputation and stats from server to client,
send entity faction to clients,
improved list_entity.
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/base/faction.cc | 1 | ||||
-rw-r--r-- | src/game/base/ship.cc | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/game/base/faction.cc b/src/game/base/faction.cc index 8171a2d..512a8c6 100644 --- a/src/game/base/faction.cc +++ b/src/game/base/faction.cc @@ -220,6 +220,7 @@ void Faction::apply_default(core::Reputation & reputation) } } } + reputation.set_dirty(); } } // namespace game diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc index 08838ad..b046d9d 100644 --- a/src/game/base/ship.cc +++ b/src/game/base/ship.cc @@ -657,7 +657,7 @@ void Ship::hit(core::Entity *other) std::string message("^B"); message.append(owner()->name()); - if (assassin) { + if (assassin) { if (assassin == owner()) { message.append(" ^Bran into his own mine."); } else { @@ -667,6 +667,7 @@ void Ship::hit(core::Entity *other) // asssissin killed a player assassin->set_pvpkills(assassin->pvpkills() + 1); + assassin->set_dirty(); } } else { message.append(" ^Bwent boom."); @@ -678,6 +679,7 @@ void Ship::hit(core::Entity *other) if (assassin) { // assissin killed an NPC assassin->set_npckills(assassin->npckills() + 1); + assassin->set_dirty(); } } } @@ -733,6 +735,7 @@ void Ship::hit(core::Entity *other) // assissin killed an NPC assassin->set_npckills(assassin->npckills() + 1); } + assassin->set_dirty(); } } else { |