shithub: choc

Download patch

ref: 9c97b50afead04ff47ed6e465e5c366e8f276ad8
parent: 59bc6523b4869e515aefa9118715cd440b163fc4
author: Simon Howard <fraggle@gmail.com>
date: Sun Apr 18 14:54:52 EDT 2010

Do dehacked string substitution for end of episode text.

Subversion-branch: /branches/raven-branch
Subversion-revision: 1907

--- a/src/heretic/f_finale.c
+++ b/src/heretic/f_finale.c
@@ -38,11 +38,6 @@
 #define TEXTSPEED       3
 #define TEXTWAIT        250
 
-char *e1text = E1TEXT;
-char *e2text = E2TEXT;
-char *e3text = E3TEXT;
-char *e4text = E4TEXT;
-char *e5text = E5TEXT;
 char *finaletext;
 char *finaleflat;
 
@@ -74,23 +69,23 @@
     {
         case 1:
             finaleflat = DEH_String("FLOOR25");
-            finaletext = e1text;
+            finaletext = DEH_String(E1TEXT);
             break;
         case 2:
             finaleflat = DEH_String("FLATHUH1");
-            finaletext = e2text;
+            finaletext = DEH_String(E2TEXT);
             break;
         case 3:
             finaleflat = DEH_String("FLTWAWA2");
-            finaletext = e3text;
+            finaletext = DEH_String(E3TEXT);
             break;
         case 4:
             finaleflat = DEH_String("FLOOR28");
-            finaletext = e4text;
+            finaletext = DEH_String(E4TEXT);
             break;
         case 5:
             finaleflat = DEH_String("FLOOR08");
-            finaletext = e5text;
+            finaletext = DEH_String(E5TEXT);
             break;
     }