(svn r10520) -Fix: when a "can I build this industry tile here" callback did not fail, it doesn't automatically mean that the industry tile can be built there.
authorrubidium
Thu, 12 Jul 2007 09:15:57 +0000
changeset 7735 6c600a540a44
parent 7734 56228bfe84bc
child 7736 1119c5e38774
(svn r10520) -Fix: when a "can I build this industry tile here" callback did not fail, it doesn't automatically mean that the industry tile can be built there.
src/newgrf_industrytiles.cpp
--- a/src/newgrf_industrytiles.cpp	Thu Jul 12 08:10:40 2007 +0000
+++ b/src/newgrf_industrytiles.cpp	Thu Jul 12 09:15:57 2007 +0000
@@ -244,7 +244,7 @@
 	if (its->grf_prop.grffile->grf_version < 7) {
 		return callback_res != 0;
 	}
-	if (callback_res != CALLBACK_FAILED) return true;
+	if (callback_res == CALLBACK_FAILED) return false;
 
 	switch (callback_res) {
 		case 0x400: return true;