summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2010-04-05 18:47:27 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:34 +0000
commit376af220b8d5c93ab55d79342fe5176f2c91c1d4 (patch)
tree649a5949473c1d842bd23ac8391bdf03ec3f140f
parent66b023d4735fd4ff15fd92819dfbcd1aea8ec733 (diff)
* Fix alien builders not receiving score when tremded is running in vm_game=0 (thanks Exclamation, kevlarman)
-rw-r--r--src/game/g_combat.c4
-rw-r--r--src/game/tremulous.h2
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