diff options
author | Tim Angus <tim@ngus.net> | 2007-11-28 18:43:59 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2007-11-28 18:43:59 +0000 |
commit | eef39a673717b450cf2ef5537066472ec556c21f (patch) | |
tree | 054cfbfdc784c15ca75061bd5000f153455e6822 | |
parent | 8ae105ea923749d62c707160f87972182b00d42d (diff) |
* Don't test for spawn removal when building if there are no spawns
(benmachine)
* Don't test for spawn removal when cheats are enabled (benmachine)
-rw-r--r-- | src/game/g_buildable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 9c36e4c8..b64e663c 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -2905,7 +2905,7 @@ static itemBuildError_t G_SufficientBPAvailable( buildable_t buildable, } // Make sure we're not removing the last spawn - if( ( remainingSpawns - spawnCount ) < 1 ) + if( !g_cheats.integer && remainingSpawns > 0 && ( remainingSpawns - spawnCount ) < 1 ) return bpError; // Not enough points yielded |