Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2003, 08:27 AM
loudent2
Sarnak
 
Join Date: Apr 2003
Posts: 95
Default Small bug fix with player corpses.(snippets)

I changed the behavior slightly with corpses. If a corpse had no plat or items it was never saved which means empty corpses that could be used for rez were disappearing. I changed it so that it only disappears when empty of items after being looted

RCS file: /cvsroot/eqemu/NightDumps/NightDumps/Source/zone/PlayerCorpse.cpp,v
retrieving revision 1.1.1.1
diff -w -r1.1.1.1 PlayerCorpse.cpp
Code:
456,458c456,457
< bool Corpse::IsEmpty() {
< 	if (copper != 0 || silver != 0 || gold != 0 || platinum != 0)
< 		return false;
---
> bool Corpse::IsEmpty(bool bIgnoreRezXP) {

	if (copper != 0 || silver != 0 || gold != 0 || platinum != 0)
> 		return false;

	if(false == bIgnoreRezXP)
	{
		if(0 != rezzexp) return false;
	}
Code:
849c848
< 	if (this->IsEmpty()) {
---
> 	if (this->IsEmpty(true)) {


Index: PlayerCorpse.h
================================================== =================
RCS file: /cvsroot/eqemu/NightDumps/NightDumps/Source/zone/PlayerCorpse.h,v
retrieving revision 1.1.1.1
diff -w -r1.1.1.1 PlayerCorpse.h
Code:
59c59
< 	bool	IsEmpty();
---
> 	bool	IsEmpty(bool bIgnoreRexXP = false);
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:17 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3