From 4896428eefa6e621523168a42dceda4f8f2b0097 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 7 Nov 2013 13:38:11 +0000 Subject: Added core:: support for entity factions and player reputation (single-player only). --- src/core/entity.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/entity.cc') diff --git a/src/core/entity.cc b/src/core/entity.cc index 89c78d8..89e494a 100644 --- a/src/core/entity.cc +++ b/src/core/entity.cc @@ -165,6 +165,8 @@ Entity::Entity() : entity_inventory = 0; entity_slots = 0; entity_info = 0; + + entity_faction = 0; memset(entity_extension, 0, sizeof(entity_extension)); @@ -193,6 +195,8 @@ Entity::Entity(std::istream & is) entity_inventory = 0; entity_slots = 0; entity_info = 0; + + entity_faction = 0; memset(entity_extension, 0, sizeof(entity_extension)); } @@ -1070,6 +1074,7 @@ void EntityControlable::ActionInterface::debugDraw(btIDebugDraw* debugDrawer) /*----- EntityControlable ------------------------------------------ */ +// server-side constructor EntityControlable::EntityControlable() : EntityDynamic() { entity_thrust = 0; @@ -1088,6 +1093,7 @@ EntityControlable::EntityControlable() : EntityDynamic() entity_health = 100.0f; } +// client-side constructor EntityControlable::EntityControlable(std::istream & is) : EntityDynamic(is) { -- cgit v1.2.3