[ScryMUD] SVN Commit Info r703 - trunk/mud/grrmud/server
scrymud at wanfear.com
scrymud at wanfear.com
Sat Nov 20 01:07:18 PST 2004
Author: eroper
Date: 2004-11-20 01:07:18 -0800 (Sat, 20 Nov 2004)
New Revision: 703
Modified:
trunk/mud/grrmud/server/trv_spll.cc
Log:
ported r702 (tornado/typhoon crash fix) from version-2-1 branch.
--Khaav
Modified: trunk/mud/grrmud/server/trv_spll.cc
===================================================================
--- trunk/mud/grrmud/server/trv_spll.cc 2004-11-20 08:01:55 UTC (rev 702)
+++ trunk/mud/grrmud/server/trv_spll.cc 2004-11-20 09:07:18 UTC (rev 703)
@@ -717,6 +717,7 @@
emote("is crushed into the earth.", *ptr,
room_list[ptr->getCurRoomNum()], TRUE);
agg_kills_vict(&agg, *ptr);
+ ptr = NULL;
}//if
else {
show("You land painfully on the ground.\n", *ptr);
@@ -729,7 +730,10 @@
emote("lands lightly on the ground.", *ptr,
room_list[ptr->getCurRoomNum()], TRUE);
}//else
- look(1, &NULL_STRING, *ptr, TRUE);
+ // Make sure they haven't died
+ if ( ptr ) {
+ look(1, &NULL_STRING, *ptr, TRUE);
+ }
}//if
if (count++ > 9) { //can't spin for too long
break;
@@ -851,6 +855,7 @@
emote("is crushed into the earth.", *ptr,
room_list[ptr->getCurRoomNum()], TRUE);
agg_kills_vict(&agg, *ptr);
+ ptr = NULL;
}//if
else {
show("You land painfully on the ground.\n", *ptr);
@@ -863,7 +868,10 @@
emote("lands lightly on the ground.", *ptr,
room_list[ptr->getCurRoomNum()], TRUE);
}//else
- look(1, &NULL_STRING, *ptr, TRUE);
+ // Make sure they haven't died
+ if ( ptr ) {
+ look(1, &NULL_STRING, *ptr, TRUE);
+ }
}//if
}//while
}//while
More information about the ScryMUD
mailing list