summaryrefslogtreecommitdiff
path: root/src/game/g_target.c
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2011-08-01 23:44:50 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:18:11 +0000
commitc96977d5d3058311e8632a90e191979347d69eb4 (patch)
tree3e22a87c0428bb529934628890346c85397d28b2 /src/game/g_target.c
parentbf97377b9eec8216dd18a538033aaa780091ba2f (diff)
* (bug 5007) Minor improvements to target_*_win for better behavior in edge cases (/dev/humancontroller)
Diffstat (limited to 'src/game/g_target.c')
-rw-r--r--src/game/g_target.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/g_target.c b/src/game/g_target.c
index 53df65cb..3157c8f1 100644
--- a/src/game/g_target.c
+++ b/src/game/g_target.c
@@ -409,7 +409,8 @@ target_alien_win_use
*/
void target_alien_win_use( gentity_t *self, gentity_t *other, gentity_t *activator )
{
- level.uncondAlienWin = qtrue;
+ if( !level.uncondHumanWin )
+ level.uncondAlienWin = qtrue;
}
/*
@@ -429,7 +430,8 @@ target_human_win_use
*/
void target_human_win_use( gentity_t *self, gentity_t *other, gentity_t *activator )
{
- level.uncondHumanWin = qtrue;
+ if( !level.uncondAlienWin )
+ level.uncondHumanWin = qtrue;
}
/*