diff options
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r-- | src/game/g_buildable.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index f479d353..a09ca189 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -2897,6 +2897,16 @@ itemBuildError_t G_CanBuild( gentity_t *ent, buildable_t buildable, int distance break; } + if( tempent->s.modelindex == BA_A_HOVEL && + buildable == BA_A_HOVEL && + tempent->active ) + { + reason = IBE_HOVEL; + } + else if( tempent->s.modelindex == buildable ) + { + level.markedBuildables[ level.numBuildablesForRemoval++ ] = tempent; + } } } @@ -2972,6 +2982,8 @@ itemBuildError_t G_CanBuild( gentity_t *ent, buildable_t buildable, int distance reason = IBE_REACTOR; break; } + if( tempent->s.modelindex == buildable ) + level.markedBuildables[ level.numBuildablesForRemoval++ ] = tempent; } } |