[CF-Devel] Fog sinks into swamp :-)

crossfire-devel at archives.real-time.com crossfire-devel at archives.real-time.com
Tue Nov 11 08:01:41 CST 2003


Hi, I just found a bug in swamp.c. It doesn't check the flying flag on
non-alive objects (such as fog), which means that fog sinks into the swamp
rather quickly. :-P

The diff for the fix appears below.


T

-- 
Hello? No, I'm not home. Would you like to leave me a message?


--- server/swamp.c.ORIG	2003-11-11 08:58:02.000000000 -0500
+++ server/swamp.c	2003-11-11 08:54:04.000000000 -0500
@@ -77,7 +77,7 @@
 		    }
 		    break;
 	    }
-	} else if (!QUERY_FLAG(above, FLAG_ALIVE)) {
+	} else if (!QUERY_FLAG(above, FLAG_ALIVE) && !QUERY_FLAG(above,
FLAG_FLYING)) {
 	    if (rndm(0, 2) == 0) decrease_ob(above);
 	}
 	above = nabove;


_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list