Core/Misc: remove some obsolete parameters
This commit is contained in:
1 parent
f388020366
commit
84bff76ba0
49 files changed
+311
-381
No files matched your search
@@ -226,14 +226,6 @@ public:
|
||||
if (!charID)
|
||||
return false;
|
||||
|
||||
char* team = strtok(NULL, " ");
|
||||
int32 teamval = 0;
|
||||
if (team)
|
||||
teamval = atoi(team);
|
||||
|
||||
if (teamval < 0)
|
||||
teamval = 0;
|
||||
|
||||
uint32 id = atoi(charID);
|
||||
if (!sObjectMgr->GetCreatureTemplate(id))
|
||||
return false;
|
||||
@@ -265,7 +257,7 @@ public:
|
||||
}
|
||||
|
||||
Creature* creature = new Creature();
|
||||
if (!creature->Create(sObjectMgr->GenerateLowGuid(HIGHGUID_UNIT), map, chr->GetPhaseMaskForSpawn(), id, 0, (uint32)teamval, x, y, z, o))
|
||||
if (!creature->Create(sObjectMgr->GenerateLowGuid(HIGHGUID_UNIT), map, chr->GetPhaseMaskForSpawn(), id, x, y, z, o))
|
||||
{
|
||||
delete creature;
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user