aboutsummaryrefslogtreecommitdiff
path: root/src/crmain.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/crmain.cc')
-rw-r--r--src/crmain.cc15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/crmain.cc b/src/crmain.cc
index 6193515..3d45827 100644
--- a/src/crmain.cc
+++ b/src/crmain.cc
@@ -12,15 +12,17 @@
TRaceData RaceData[MAX_RACES];
priority_queue<uint32, uint32> ToDoQueue(5000, 1000);
-static uint32 NextCreatureID;
-static int FirstFreeCreature;
static TCreature *HashList[1000];
static matrix<uint32> *FirstChainCreature;
static vector<TCreature*> CreatureList(0, 10000, 1000, NULL);
-static priority_queue<uint32, TAttackWave*> AttackWaveQueue(100, 100);
+static int FirstFreeCreature;
+static uint32 NextCreatureID;
+
static int KilledCreatures[MAX_RACES];
static int KilledPlayers[MAX_RACES];
+static priority_queue<uint32, TAttackWave*> AttackWaveQueue(100, 100);
+
// TFindCreatures
// =============================================================================
TFindCreatures::TFindCreatures(int RadiusX, int RadiusY, int CenterX, int CenterY, int Mask){
@@ -125,14 +127,19 @@ TCreature::TCreature(void) :
this->ID = 0;
this->NextHashEntry = NULL;
this->NextChainCreature = 0;
+ this->Name[0] = 0;
this->Murderer[0] = 0;
+ this->OrgOutfit = {};
+ this->Outfit = {};
this->startx = 0;
this->starty = 0;
this->startz = 0;
this->posx = 0;
this->posy = 0;
this->posz = 0;
- this->Direction = 0;
+ this->Sex = 1;
+ this->Race = 0;
+ this->Direction = DIRECTION_SOUTH;
this->Radius = INT_MAX;
this->IsDead = false;
this->LoseInventory = LOSE_INVENTORY_ALL;