From 1c62f2ff14236409a68ada38ba636467494bc23a Mon Sep 17 00:00:00 2001 From: ZTsukei Date: Sun, 16 Apr 2017 21:51:44 -0400 Subject: [PATCH] v1.3.03 ------- Fixed offroad being applied to almost every sector special. Oops. --- src/doomdef.h | 10 +++++----- src/k_kart.c | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/doomdef.h b/src/doomdef.h index 3787f055..5650099e 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -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 diff --git a/src/k_kart.c b/src/k_kart.c index 2c09eedb..791a6f57 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -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.