From 376af220b8d5c93ab55d79342fe5176f2c91c1d4 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Mon, 5 Apr 2010 18:47:27 +0000 Subject: * Fix alien builders not receiving score when tremded is running in vm_game=0 (thanks Exclamation, kevlarman) --- src/game/g_combat.c | 4 ++-- src/game/tremulous.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/g_combat.c b/src/game/g_combat.c index 2c65abce..a5ea3ab7 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -44,11 +44,11 @@ void AddScore( gentity_t *ent, int score ) // make alien and human scores equivalent if ( ent->client->pers.teamSelection == TEAM_ALIENS ) { - score = rint( (double)score / 2.0 ); + score = rint( ((float)score) / 2.0f ); } // scale values down to fit the scoreboard better - score = rint( (double)score / 50.0 ); + score = rint( ((float)score) / 50.0f ); ent->client->ps.persistant[ PERS_SCORE ] += score; CalculateRanks( ); diff --git a/src/game/tremulous.h b/src/game/tremulous.h index 0afdf318..d58dc467 100644 --- a/src/game/tremulous.h +++ b/src/game/tremulous.h @@ -642,7 +642,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define HUMAN_TK_SUICIDE_PENALTY 150 #define HUMAN_BUILDER_SCOREINC 50 // builders receive this many points every 10 seconds -#define ALIEN_BUILDER_SCOREINC AVM(50) // builders receive this many points every 10 seconds +#define ALIEN_BUILDER_SCOREINC AVM(100) // builders receive this many points every 10 seconds #define HUMAN_BUILDABLE_INACTIVE_TIME 90000 -- cgit