From 45dbdfa31cc7237fb7ff92ddfaa18a97402589c7 Mon Sep 17 00:00:00 2001 From: ZTsukei Date: Mon, 17 Apr 2017 20:37:46 -0400 Subject: [PATCH] v1.3.06 ------- Increased weight's effect on drifting by 20% (10->12) --- src/doomdef.h | 10 +++++----- src/k_kart.c | 6 +----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/doomdef.h b/src/doomdef.h index 23a078ecf..ce1fb9714 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 5 // more precise version number +#define SUBVERSION 6 // more precise version number #define VERSIONSTRING "Development EXE" -#define VERSIONSTRINGW "v1.3.05" +#define VERSIONSTRINGW "v1.3.06" // most interface strings are ignored in development mode. // we use comprevision and compbranch instead. #else #define VERSION 103 // Game version -#define SUBVERSION 5 // more precise version number -#define VERSIONSTRING "DevEXE v1.3.05" -#define VERSIONSTRINGW L"v1.3.05" +#define SUBVERSION 6 // more precise version number +#define VERSIONSTRING "DevEXE v1.3.06" +#define VERSIONSTRINGW L"v1.3.06" // 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 b4dda5e99..596e47eaa 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -902,7 +902,6 @@ void K_SwapMomentum(mobj_t *mobj1, mobj_t *mobj2, boolean bounce) { if (mobj1 == NULL || mobj2 == NULL) return; - fixed_t meanX = (mobj1->momx + mobj2->momx) / 2; fixed_t meanY = (mobj1->momy + mobj2->momy) / 2; fixed_t deltaV1 = P_AproxDistance((mobj1->momx - meanX), (mobj1->momy - meanY)); @@ -950,12 +949,10 @@ void K_SwapMomentum(mobj_t *mobj1, mobj_t *mobj2, boolean bounce) void K_KartBouncer(void) { fixed_t i, j; - for (i = 0; i < MAXPLAYERS; i++) if (playeringame[i] && players[i].mo && !P_MobjWasRemoved(players[i].mo)) for (j = 0; j < MAXPLAYERS; j++) players[i].collide[j] = false; - for (i = 0; i < MAXPLAYERS; i++) if (playeringame[i] && players[i].mo && !P_MobjWasRemoved(players[i].mo)) { @@ -964,7 +961,6 @@ void K_KartBouncer(void) { if (players[j].mo == players[i].mo) break; - if (K_IsTouching(players[i].mo, players[j].mo)) { if (!players[i].collide[j] && !players[j].collide[i]) @@ -1926,7 +1922,7 @@ static void K_DoLightning(player_t *player, boolean bluelightning) static INT16 K_GetKartDriftValue(player_t *player, fixed_t countersteer) { INT16 basedrift, driftangle; - fixed_t driftweight = player->kartweight*10; + fixed_t driftweight = player->kartweight*12; // If they aren't drifting or on the ground this doesn't apply if (player->kartstuff[k_drift] == 0 || !P_IsObjectOnGround(player->mo))