summaryrefslogtreecommitdiff
path: root/src/hexen/g_game.c
diff options
context:
space:
mode:
authorFabian Greffrath2015-03-23 12:12:38 +0100
committerFabian Greffrath2015-03-23 12:12:38 +0100
commit350ac122030d198b187255b19b2519ef8267364a (patch)
tree1b04bbb3f4071d74c1fbf22040307950fb806f99 /src/hexen/g_game.c
parent19659f3eab0614465577ac71731b4bdce67ce30c (diff)
downloadchocolate-doom-350ac122030d198b187255b19b2519ef8267364a.tar.gz
chocolate-doom-350ac122030d198b187255b19b2519ef8267364a.tar.bz2
chocolate-doom-350ac122030d198b187255b19b2519ef8267364a.zip
play sound when trying to enter a forbidden map in the demo version
Diffstat (limited to 'src/hexen/g_game.c')
-rw-r--r--src/hexen/g_game.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hexen/g_game.c b/src/hexen/g_game.c
index d6a73678..04e0e5af 100644
--- a/src/hexen/g_game.c
+++ b/src/hexen/g_game.c
@@ -1474,6 +1474,7 @@ void G_Completed(int map, int position)
if (gamemode == shareware && map > 4)
{
P_SetMessage(&players[consoleplayer], "ACCESS DENIED -- DEMO", true);
+ S_StartSound(NULL, SFX_CHAT);
return;
}