From e45d844c819e20d33fa67d58252c34b0774504cb Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Tue, 5 Sep 2006 21:16:07 +0000 Subject: Bug 2848 * When a building is prohibited (e.g. a second Reactor), the red "blueprint" was being given instead of the proper error message if the builder was initially trying to place the building where there was no room for it. --- src/game/g_buildable.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 27e542ee..59040d0e 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -2463,14 +2463,14 @@ itemBuildError_t G_itemFits( gentity_t *ent, buildable_t buildable, int distance //can we build at this angle? if( !( normal[ 2 ] >= minNormal || ( invert && normal[ 2 ] <= -minNormal ) ) ) - return IBE_NORMAL; + reason = IBE_NORMAL; if( tr1.entityNum != ENTITYNUM_WORLD ) - return IBE_NORMAL; + reason = IBE_NORMAL; //check there is enough room to spawn from (presuming this is a spawn) if( G_CheckSpawnPoint( -1, origin, normal, buildable, NULL ) != NULL ) - return IBE_NORMAL; + reason = IBE_NORMAL; contents = trap_PointContents( entity_origin, -1 ); -- cgit