ref: 6b624639374600c50e72b435a5d4ce0fe2f7a1a1
parent: d73a64228a6502ce68e1c9fd1cc5197863a50c7e
author: Simon Howard <fraggle@gmail.com>
date: Sat Mar 15 22:27:34 EDT 2014
heretic/hexen: Fix pause key remapping. Heretic and Hexen had the pause key hard-coded to KEY_PAUSE when they should actually use key_pause so that they can be remapped by the user. Thanks to Fabian Greffrath for the bug report (fixes #337).
--- a/src/heretic/g_game.c
+++ b/src/heretic/g_game.c
@@ -851,7 +851,7 @@
}
return (true);
}
- if (ev->data1 == KEY_PAUSE && !MenuActive)
+ if (ev->data1 == key_pause && !MenuActive)
{
sendpause = true;
return (true);
--- a/src/hexen/g_game.c
+++ b/src/hexen/g_game.c
@@ -848,7 +848,7 @@
}
return (true);
}
- if (ev->data1 == KEY_PAUSE && !MenuActive)
+ if (ev->data1 == key_pause && !MenuActive)
{
sendpause = true;
return (true);