- Fixed: G_StartTravel() inadvertantly removed players' TIDs.

SVN r738 (trunk)
This commit is contained in:
Randy Heit 2008-02-10 03:24:25 +00:00
parent 95180e18e6
commit 3f80b8d21f
2 changed files with 3 additions and 0 deletions

View file

@ -1,4 +1,5 @@
February 9, 2008 February 9, 2008
- Fixed: G_StartTravel() inadvertantly removed players' TIDs.
- Modified FLAC/share/alloc.h to define SIZE_T_MAX if it isn't defined - Modified FLAC/share/alloc.h to define SIZE_T_MAX if it isn't defined
already. For some reason, a stock install of MinGW doesn't define it, but already. For some reason, a stock install of MinGW doesn't define it, but
if you compile your own GCC, it installs headers that do. if you compile your own GCC, it installs headers that do.

View file

@ -2211,7 +2211,9 @@ void G_StartTravel ()
{ {
pawn->UnlinkFromWorld (); pawn->UnlinkFromWorld ();
P_DelSector_List (); P_DelSector_List ();
int tid = pawn->tid; // Save TID
pawn->RemoveFromHash (); pawn->RemoveFromHash ();
pawn->tid = tid; // Restore TID (but no longer linked into the hash chain)
pawn->ChangeStatNum (STAT_TRAVELLING); pawn->ChangeStatNum (STAT_TRAVELLING);
for (inv = pawn->Inventory; inv != NULL; inv = inv->Inventory) for (inv = pawn->Inventory; inv != NULL; inv = inv->Inventory)