From eef39a673717b450cf2ef5537066472ec556c21f Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Wed, 28 Nov 2007 18:43:59 +0000 Subject: * 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) --- src/game/g_buildable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit