ref: 18e2e3f73e00447b013583415a0423f09b2b0af0
parent: bc7f01df39827dee7e24fb461b4d48510e0e3582
author: Samuel Villareal <[email protected]>
date: Sat Sep 11 20:36:52 EDT 2010
+ externalized isregistered + Swapped out gamemode with isregistered check in P_InitSwitches Subversion-branch: /branches/strife-branch Subversion-revision: 2068
--- a/src/strife/d_main.h
+++ b/src/strife/d_main.h
@@ -52,6 +52,7 @@
//
extern gameaction_t gameaction;
+extern boolean isregistered; // villsa [STRIFE]
#endif
--- a/src/strife/p_switch.c
+++ b/src/strife/p_switch.c
@@ -33,7 +33,7 @@
#include "p_local.h"
#include "g_game.h"
-
+#include "d_main.h" // villsa [STRIFE]
#include "s_sound.h"
// Data.
@@ -139,9 +139,8 @@
episode = 1;
- // STRIFE-FIXME: Needs to test isregistered variable
- if(gamemode == registered)
- episode = 2;
+ if(isregistered)
+ episode = 2;
// villsa [STRIFE] unused
/*else
if ( gamemode == commercial )