Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-11-09 15:22:44 +0000
committerStijn Buys <ingar@osirion.org>2013-11-09 15:22:44 +0000
commit977a9a68d2465818a331643399a9ecc998d0cbb3 (patch)
tree5e19904a95119ebc22cfffedcf4bd7b2094e4e31 /src/game
parentd0b6e591fbaf3db5fc9898e75913e57a3c32169a (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.cc1
-rw-r--r--src/game/base/ship.cc5
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 {