*Replace a ton of switches with RAND(), and overload RAND() to support up to 16 parameters.

*Add a safety check to prevent knocking players off of transports, just in case they die while on one.
*Fix a couple incorrect spell defines.

--HG--
branch : trunk
This commit is contained in:
maximius
2009-09-26 02:09:26 -07:00
parent 2853aa1cd1
commit f8a6434fc0
22 changed files with 323 additions and 248 deletions
+1 -1
View File
@@ -4461,7 +4461,7 @@ bool Player::FallGround(bool noDeath/* = false*/)
void Player::KillPlayer()
{
if(IsFlying()) FallGround();
if(IsFlying() && !GetTransport()) FallGround();
SetMovement(MOVE_ROOT);