From e18c96ca9043acf36d77ae7fc40d6161639c708d Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 11:46:46 +0000 Subject: * Fix tabs * Fix bsuits * Um. --- src/game/g_active.c | 2 +- src/game/g_cmds.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/game/g_active.c b/src/game/g_active.c index cbc9aa5c..a6d99691 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -407,7 +407,7 @@ void SpectatorThink( gentity_t *ent, usercmd_t *ucmd ) !( client->oldbuttons & BUTTON_USE_HOLDABLE ); // We are in following mode only if we are following a non-spectating client - following = client->sess.spectatorState != SPECTATOR_FOLLOW; + following = client->sess.spectatorState == SPECTATOR_FOLLOW; if( following ) { clientNum = client->sess.spectatorClient; diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 566b533a..dff03fbc 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -2063,8 +2063,7 @@ void Cmd_Buy_f( gentity_t *ent ) weapon = BG_WeaponByName( s )->number; upgrade = BG_UpgradeByName( s )->number; - // Seems odd to let people 'buy ammo' from a Reactor but allow this - // and make sure we only give energy ammo in this case + // Only give energy from reactors or repeaters if( G_BuildableRange( ent->client->ps.origin, 100, BA_H_ARMOURY ) ) energyOnly = qfalse; else if( upgrade == UP_AMMO && BG_HasEnergyWeapon( &ent->client->ps ) && -- cgit