mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
- Added a missing NULL pointer check to APlayerPawn::Tick.
- Fixed: The falling scream should not be played when the player is under water. SVN r120 (trunk)
This commit is contained in:
parent
4a8ca6d134
commit
2ad91cc973
4 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
May 16, 2006 (Changes by Graf Zahl)
|
||||||
|
- Added a missing NULL pointer check to APlayerPawn::Tick.
|
||||||
|
- Fixed: The falling scream should not be played when the player is under
|
||||||
|
water.
|
||||||
|
|
||||||
May 15, 2006
|
May 15, 2006
|
||||||
- Fixed: CopyPlayer() in p_saveg.cpp should use normal assignment, not
|
- Fixed: CopyPlayer() in p_saveg.cpp should use normal assignment, not
|
||||||
memcpy to copy the player structures.
|
memcpy to copy the player structures.
|
||||||
|
|
|
@ -83,7 +83,6 @@
|
||||||
#include "gameconfigfile.h"
|
#include "gameconfigfile.h"
|
||||||
#include "sbar.h"
|
#include "sbar.h"
|
||||||
#include "decallib.h"
|
#include "decallib.h"
|
||||||
#include "version.h"
|
|
||||||
#include "r_polymost.h"
|
#include "r_polymost.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "v_text.h"
|
#include "v_text.h"
|
||||||
|
|
|
@ -279,7 +279,7 @@ void APlayerPawn::Tick()
|
||||||
Super::Tick();
|
Super::Tick();
|
||||||
|
|
||||||
// Here's the place where crouching sprites should be handled
|
// Here's the place where crouching sprites should be handled
|
||||||
if (player->crouchfactor<FRACUNIT*3/4)
|
if (player != NULL && player->crouchfactor<FRACUNIT*3/4)
|
||||||
{
|
{
|
||||||
if (crouchsprite != 0)
|
if (crouchsprite != 0)
|
||||||
{
|
{
|
||||||
|
@ -1425,8 +1425,9 @@ void P_PlayerThink (player_t *player)
|
||||||
P_PlayerInSpecialSector (player);
|
P_PlayerInSpecialSector (player);
|
||||||
}
|
}
|
||||||
P_PlayerOnSpecialFlat (player, P_GetThingFloorType (player->mo));
|
P_PlayerOnSpecialFlat (player, P_GetThingFloorType (player->mo));
|
||||||
if (player->mo->momz <= -35*FRACUNIT
|
if (player->mo->momz <= -35*FRACUNIT &&
|
||||||
&& player->mo->momz >= -40*FRACUNIT && !player->morphTics)
|
player->mo->momz >= -40*FRACUNIT && !player->morphTics &&
|
||||||
|
player->mo->waterlevel == 0)
|
||||||
{
|
{
|
||||||
int id = S_FindSkinnedSound (player->mo, "*falling");
|
int id = S_FindSkinnedSound (player->mo, "*falling");
|
||||||
if (id != 0 && !S_GetSoundPlayingInfo (player->mo, id))
|
if (id != 0 && !S_GetSoundPlayingInfo (player->mo, id))
|
||||||
|
|
|
@ -130,7 +130,7 @@ public:
|
||||||
if (index < Count)
|
if (index < Count)
|
||||||
{
|
{
|
||||||
Array[index].~T();
|
Array[index].~T();
|
||||||
memmove (&Array[index], &Array[index+1], Count - index - 1);
|
memmove (&Array[index], &Array[index+1], sizeof(T)*(Count - index - 1));
|
||||||
Count--;
|
Count--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue