Code:
#if defined (ACTIVISION_ORIGINAL) for(i = 0; i < rec->GetNumCantBuildOn(); i++) { if(rec->GetCantBuildOnIndex(i) == cell->GetTerrain()) { return FALSE; } } } #else // Is restricted to code added by E 2-Mar-2005 if(rec->IsRestrictedToGood == 0) { for(i = 0; i < rec->GetNumCantBuildOn(); i++) { if(rec->GetCantBuildOnIndex(i) == cell->GetTerrain()) { return false; } } } else { sint32 good; if (g_theWorld->GetGood(pos, good)) { for(i = 0; i < rec->GetNumIsRestrictedToGood(); i++) { if(rec->GetIsRestrictedToGood(i) == good) { return true; } } return false; } } #endif
Comment