From b2b729fd37a077e0b8d78985bff48e767f535f3b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 20 Apr 2006 00:25:30 +0000 Subject: [PATCH] April 19, 2006 (Changes by Graf Zahl) - Fixed: Hexen had no default sound sequence for doors and passed a NULL pointer to SN_StartSequence in DoorSound. SVN r55 (trunk) --- docs/rh-log.txt | 4 ++++ src/p_doors.cpp | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 7bd3b8607..787305967 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,3 +1,7 @@ +April 19, 2006 (Changes by Graf Zahl) +- Fixed: Hexen had no default sound sequence for doors and passed a NULL + pointer to SN_StartSequence in DoorSound. + April 18, 2006 (Changes by Graf Zahl) - Fixed A_CHolyAttack used linetarget to set the spirits' target actor. But it assumed that this variable was still valid from shooting the diff --git a/src/p_doors.cpp b/src/p_doors.cpp index 51c9fec71..01b2b010f 100644 --- a/src/p_doors.cpp +++ b/src/p_doors.cpp @@ -215,10 +215,14 @@ void DDoor::DoorSound (bool raise) const { switch (gameinfo.gametype) { - default: - snd = NULL; - break; + + default: + break; + case GAME_Hexen: + snd = "DoorNormal"; + break; + case GAME_Heretic: snd = raise ? "HereticDoorOpen" : "HereticDoorClose"; break;