diff options
author | Simon Howard | 2005-10-03 21:39:39 +0000 |
---|---|---|
committer | Simon Howard | 2005-10-03 21:39:39 +0000 |
commit | 4dfffeb54db996c6ea0e52e1707633b80a581f2e (patch) | |
tree | c6ca8b5e27aa17ffc864b4139302719046af5d7d /src/am_map.c | |
parent | c41381ead5f96f61797e96ba302f4a09d9922a88 (diff) | |
download | chocolate-doom-4dfffeb54db996c6ea0e52e1707633b80a581f2e.tar.gz chocolate-doom-4dfffeb54db996c6ea0e52e1707633b80a581f2e.tar.bz2 chocolate-doom-4dfffeb54db996c6ea0e52e1707633b80a581f2e.zip |
Dehacked text substitutions
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 160
Diffstat (limited to 'src/am_map.c')
-rw-r--r-- | src/am_map.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/src/am_map.c b/src/am_map.c index 7ccd7ccf..9e6b1ab8 100644 --- a/src/am_map.c +++ b/src/am_map.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: am_map.c 71 2005-09-04 18:44:23Z fraggle $ +// $Id: am_map.c 160 2005-10-03 21:39:39Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -23,6 +23,9 @@ // // // $Log$ +// Revision 1.6 2005/10/03 21:39:39 fraggle +// Dehacked text substitutions +// // Revision 1.5 2005/09/04 18:44:22 fraggle // shut up compiler warnings // @@ -43,10 +46,11 @@ // //----------------------------------------------------------------------------- -static const char rcsid[] = "$Id: am_map.c 71 2005-09-04 18:44:23Z fraggle $"; +static const char rcsid[] = "$Id: am_map.c 160 2005-10-03 21:39:39Z fraggle $"; #include <stdio.h> +#include "deh_main.h" #include "z_zone.h" #include "doomdef.h" @@ -701,20 +705,26 @@ AM_Responder case AM_FOLLOWKEY: followplayer = !followplayer; f_oldloc.x = INT_MAX; - plr->message = followplayer ? AMSTR_FOLLOWON : AMSTR_FOLLOWOFF; + if (followplayer) + plr->message = DEH_String(AMSTR_FOLLOWON); + else + plr->message = DEH_String(AMSTR_FOLLOWOFF); break; case AM_GRIDKEY: grid = !grid; - plr->message = grid ? AMSTR_GRIDON : AMSTR_GRIDOFF; + if (grid) + plr->message = DEH_String(AMSTR_GRIDON); + else + plr->message = DEH_String(AMSTR_GRIDOFF); break; case AM_MARKKEY: - sprintf(buffer, "%s %d", AMSTR_MARKEDSPOT, markpointnum); + sprintf(buffer, "%s %d", DEH_String(AMSTR_MARKEDSPOT), markpointnum); plr->message = buffer; AM_addMark(); break; case AM_CLEARMARKKEY: AM_clearMarks(); - plr->message = AMSTR_MARKSCLEARED; + plr->message = DEH_String(AMSTR_MARKSCLEARED); break; default: cheatstate=0; |