Replace all "g_scriptVersion == 14" with "g_scriptVersion >= 14".

git-svn-id: https://svn.eduke32.com/eduke32@5892 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2016-10-14 07:40:38 +00:00
parent 9ce6cd2009
commit 259d51bec0
2 changed files with 4 additions and 4 deletions

View file

@ -47,7 +47,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#define HEAD2 APPNAME #define HEAD2 APPNAME
#define VOLUMEALL (g_Shareware == 0) #define VOLUMEALL (g_Shareware == 0)
#define PLUTOPAK (g_scriptVersion == 14) #define PLUTOPAK (g_scriptVersion >= 14)
#define VOLUMEONE (g_Shareware == 1) #define VOLUMEONE (g_Shareware == 1)
// increase by 3, because atomic GRP adds 1, and Shareware adds 2 // increase by 3, because atomic GRP adds 1, and Shareware adds 2

View file

@ -2301,7 +2301,7 @@ void G_DoGameStartup(const int32_t *params)
if (g_scriptVersion >= 11) if (g_scriptVersion >= 11)
g_playerFriction = params[j++]; g_playerFriction = params[j++];
if (g_scriptVersion == 14) if (g_scriptVersion >= 14)
g_spriteGravity = params[j++]; g_spriteGravity = params[j++];
if (g_scriptVersion >= 11) if (g_scriptVersion >= 11)
@ -2328,14 +2328,14 @@ void G_DoGameStartup(const int32_t *params)
{ {
g_player[0].ps->max_ammo_amount[FREEZE_WEAPON] = params[j++]; g_player[0].ps->max_ammo_amount[FREEZE_WEAPON] = params[j++];
if (g_scriptVersion == 14) if (g_scriptVersion >= 14)
g_player[0].ps->max_ammo_amount[GROW_WEAPON] = params[j++]; g_player[0].ps->max_ammo_amount[GROW_WEAPON] = params[j++];
g_damageCameras = params[j++]; g_damageCameras = params[j++];
g_numFreezeBounces = params[j++]; g_numFreezeBounces = params[j++];
g_freezerSelfDamage = params[j++]; g_freezerSelfDamage = params[j++];
if (g_scriptVersion == 14) if (g_scriptVersion >= 14)
{ {
g_deleteQueueSize = clamp(params[j++], 0, 1024); g_deleteQueueSize = clamp(params[j++], 0, 1024);
g_tripbombLaserMode = params[j++]; g_tripbombLaserMode = params[j++];