diff options
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_active.c | 2 | ||||
-rw-r--r-- | src/game/g_cmds.c | 3 |
2 files changed, 2 insertions, 3 deletions
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 ) && |