Core/Misc: remove some obsolete parameters

This commit is contained in:
joschiwald committed 2014-04-28 20:05:36 +02:00
1 parent f388020366
commit 84bff76ba0
49 files changed
+311 -381

No files matched your search

+1 -9
View File
@@ -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;