-------
Fixed offroad being applied to almost every sector special. Oops.
This commit is contained in:
ZTsukei 2017-04-16 21:51:44 -04:00
parent e6305ece38
commit 1c62f2ff14
2 changed files with 8 additions and 8 deletions

View File

@ -143,16 +143,16 @@ extern FILE *logstream;
#define DEVELOP // Disable this for release builds to remove excessive cheat commands and enable MD5 checking and stuff, all in one go. :3
#ifdef DEVELOP
#define VERSION 103 // Game version
#define SUBVERSION 2 // more precise version number
#define SUBVERSION 3 // more precise version number
#define VERSIONSTRING "Development EXE"
#define VERSIONSTRINGW "v1.3.02"
#define VERSIONSTRINGW "v1.3.03"
// most interface strings are ignored in development mode.
// we use comprevision and compbranch instead.
#else
#define VERSION 103 // Game version
#define SUBVERSION 2 // more precise version number
#define VERSIONSTRING "DevEXE v1.3.02"
#define VERSIONSTRINGW L"v1.3.02"
#define SUBVERSION 3 // more precise version number
#define VERSIONSTRING "DevEXE v1.3.03"
#define VERSIONSTRINGW L"v1.3.03"
// Hey! If you change this, add 1 to the MODVERSION below!
// Otherwise we can't force updates!
#endif

View File

@ -916,11 +916,11 @@ static void K_UpdateOffroad(player_t *player)
fixed_t offroadstrength = 0;
if (nextsector->special & 2) // Weak Offroad
if (GETSECSPECIAL(nextsector->special, 1) == 2) // Weak Offroad
offroadstrength = 1;
else if (nextsector->special & 3) // Mid Offroad
else if (GETSECSPECIAL(nextsector->special, 1) == 3) // Mid Offroad
offroadstrength = 2;
else if (nextsector->special & 4) // Strong Offroad
else if (GETSECSPECIAL(nextsector->special, 1) == 4) // Strong Offroad
offroadstrength = 3;
// If you are offroad, a timer starts. Depending on your weight value, the timer increments differently.