View Single Post
  #21  
Old 09-20-2005, 11:37 PM
Magoth78
Discordant
 
Join Date: Jun 2003
Posts: 345
Default

Ok, here's the fix for versions 0.6.0dr2 and mebbe dr3:

In attack.cpp, after
Code:
entity_list.AddCorpse(new_corpse, this->GetID());
add:
Code:
APPLAYER app;
  CreateSpawnPacket(&app, new_corpse);
  Corpse* dcorpse = entity_list.GetCorpseByID(GetID());
  if(dcorpse->IsPlayerCorpse())
  entity_list.QueueClients(this, &app, true);
  entity_list.RemoveFromTargets(this);
  safe_delete(trade);
  this->SetID(0);
I've tested it, it seems to work well.
Thanks again Dakaar and FNW for the direction.

Mag
__________________
User's projects:
-- Original EMPIRE I/II and Factions! servers
-- Web GM Portal
-- EQoffline/bots
Reply With Quote