mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 11:54:00 +02:00
- attempt to see if this helps deal with oos when fog of war off
This commit is contained in:
Submodule data/glest_game updated: 7a96907c89...a1e6be2182
@@ -451,7 +451,8 @@ float Ai::getRatioOfClass(UnitClass uc,UnitClass *additionalUnitClassToExcludeFr
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
return static_cast<float>(getCountOfClass(uc,additionalUnitClassToExcludeFromCount)) / aiInterface->getMyUnitCount();
|
||||
//return static_cast<float>(getCountOfClass(uc,additionalUnitClassToExcludeFromCount)) / aiInterface->getMyUnitCount();
|
||||
return truncateDecimal<float>(static_cast<float>(getCountOfClass(uc,additionalUnitClassToExcludeFromCount)) / aiInterface->getMyUnitCount(),6);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1145,7 +1145,8 @@ float Pixmap2D::getPixelf(int x, int y) const {
|
||||
snprintf(szBuf,8096,"Invalid pixmap index: " MG_SIZE_T_SPECIFIER " for [%s], h = %d, w = %d, components = %d x = %d y = %d\n",index,path.c_str(),h,w,components,x,y);
|
||||
throw megaglest_runtime_error(szBuf);
|
||||
}
|
||||
return pixels[index] / 255.f;
|
||||
float result = pixels[index] / 255.f;
|
||||
return truncateDecimal<float>(result,6);
|
||||
}
|
||||
|
||||
float Pixmap2D::getComponentf(int x, int y, int component) const {
|
||||
|
Reference in New Issue
Block a user