diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-06-24 15:02:38 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-06-24 15:02:38 -0300 |
| commit | 8bc2e5dc3a523af471065752a534d20d878c60b0 (patch) | |
| tree | d39080ec0f265227fd326588c82742771d370228 /src/crmain.cc | |
| parent | bdfcbb2f0edee2679bfe588df55e9f99bd837510 (diff) | |
| download | game-8bc2e5dc3a523af471065752a534d20d878c60b0.tar.gz game-8bc2e5dc3a523af471065752a534d20d878c60b0.zip | |
most of `crnonpl.cc`
Diffstat (limited to 'src/crmain.cc')
| -rw-r--r-- | src/crmain.cc | 15 |
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; |
