summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index f37c64fe..dfefb0be 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -2916,7 +2916,7 @@ static itemBuildError_t G_SufficientBPAvailable( buildable_t buildable,
// Make sure we're not removing the last spawn
if( !g_cheats.integer && remainingSpawns > 0 && ( remainingSpawns - spawnCount ) < 1 )
- return bpError;
+ return IBE_LASTSPAWN;
// Not enough points yielded
if( pointsYielded < buildPoints )
@@ -3424,6 +3424,10 @@ qboolean G_BuildIfValid( gentity_t *ent, buildable_t buildable )
G_TriggerMenu( ent->client->ps.clientNum, MN_H_RPTPOWERHERE );
return qfalse;
+ case IBE_LASTSPAWN:
+ G_TriggerMenu( ent->client->ps.clientNum, MN_B_LASTSPAWN );
+ return qfalse;
+
default:
break;
}