Fix issue with corpse spawn packets

Historically PC corpses used 3; it doesn't appear true with Tit+

Test case target a corpse and /ttell it :P
This commit is contained in:
Michael Cook (mackal) 2015-02-11 13:20:32 -05:00
parent 7f65080c45
commit cefff6506f

View File

@ -1271,11 +1271,7 @@ void Corpse::FillSpawnStruct(NewSpawn_Struct* ns, Mob* ForWho) {
Mob::FillSpawnStruct(ns, ForWho); Mob::FillSpawnStruct(ns, ForWho);
ns->spawn.max_hp = 120; ns->spawn.max_hp = 120;
ns->spawn.NPC = 2;
if (IsPlayerCorpse())
ns->spawn.NPC = 3;
else
ns->spawn.NPC = 2;
UpdateActiveLightValue(); UpdateActiveLightValue();
ns->spawn.light = active_light; ns->spawn.light = active_light;