diff options
author | Tony J. White <tjw@tjw.org> | 2006-09-05 21:16:07 +0000 |
---|---|---|
committer | Tony J. White <tjw@tjw.org> | 2006-09-05 21:16:07 +0000 |
commit | e45d844c819e20d33fa67d58252c34b0774504cb (patch) | |
tree | f52def5db4aa9c9c50c8abdb266a3fa2c0d99b6f /src | |
parent | b9be316436f2011811af581cca8c4b4162e74712 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_buildable.c | 6 |
1 files 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 ); |