Thread: Naked Corpses
View Single Post
  #5  
Old 10-12-2006, 08:45 AM
LostZaphod
Sarnak
 
Join Date: May 2006
Posts: 43
Default PlayerCorpse.cpp

In side of PlayerCorpse.cpp there are 5 locations that I found that delete corpses. The other night I changed the "IsEmpty()" function to always return false and then made a new subroutine that told the truth and changed the "Corpse::EndLoot" subroutine to use that one. It appears to work, but a lot more testing needs to be done. Changing the IsEmpty() function could cause problems in other code locations.

Here is one example of a corpse being deleted.

bool Corpse::Save() {
if (IsEmpty()) {
Delete();
return true;
}
Reply With Quote