From 9dc3cc532820349a0f0e087afb60132927fd3411 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 10 Nov 2013 01:48:41 +0000 Subject: Corrected a bug which prevented the patrol profile from being set correctly, corrected a bug where 'give ship' would forget the last spawn, have NPC ships fire on nearby enemies, made patrol leaders hunt nearby enemies. --- src/game/base/faction.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/game/base/faction.h') diff --git a/src/game/base/faction.h b/src/game/base/faction.h index c78c2f2..b459899 100644 --- a/src/game/base/faction.h +++ b/src/game/base/faction.h @@ -42,7 +42,7 @@ public: /** * @brief player reputation with a specific faction * */ - inline const float reputation(const Info *faction) const { + inline const float reputation(const core::Info *faction) const { if (faction == this) { return 100.0f; } else { @@ -88,6 +88,10 @@ public: * */ static void apply_default(core::Reputation & reputation); + static inline const core::InfoType *infotype() { + return faction_infotype; + } + private: /* --- attributes ------------------------------------------------- */ -- cgit v1.2.3