Make station attack player if the safety zone is violated. Make
authormdw <mdw>
Tue, 18 Mar 2003 10:33:53 +0000 (10:33 +0000)
committermdw <mdw>
Tue, 18 Mar 2003 10:33:53 +0000 (10:33 +0000)
attacking vipers legitimate targets.

swat.c

diff --git a/swat.c b/swat.c
index af795f3..c44d939 100644 (file)
--- a/swat.c
+++ b/swat.c
@@ -321,7 +321,12 @@ void make_angry (int un)
                universe[un].flags |= FLG_ANGRY;
                return;
        }
-       
+
+       if (!(universe[un].flags & FLG_TARGET) &&
+           (universe[1].type == SHIP_CORIOLIS ||
+            universe[1].type == SHIP_DODEC))
+         universe[1].flags |= FLG_ANGRY;         
+
        if (type > SHIP_ROCK)
        {
                universe[un].rotx = 4;
@@ -713,7 +718,7 @@ void tactics (int un)
        {
                if (cmdr.legal_status >= 64)
                {
-                       flags |= FLG_ANGRY;
+                       flags |= FLG_ANGRY | FLG_TARGET;
                        ship->flags = flags;
                }
        }
@@ -1145,7 +1150,7 @@ void check_for_cops (void)
        
        if (newship != -1)
        {
-               universe[newship].flags |= FLG_ANGRY;
+               universe[newship].flags |= FLG_ANGRY | FLG_TARGET;
                if (rand255() > 245)
                        universe[newship].flags |= FLG_HAS_ECM;