prevent PROT from rapidly changing portal temps

This commit is contained in:
jacob1 2014-08-06 11:49:57 -04:00
parent e4b08c88cf
commit 859fdece6a

View File

@ -92,7 +92,7 @@ int Element_PROT::update(UPDATE_FUNC_ARGS)
if (under) if (under)
{ {
//now changed so that PROT goes through portal, so only the WIFI part applies //now changed so that PROT goes through portal, so only the WIFI part applies
if ((under&0xFF) == PT_WIFI || (under&0xFF) == PT_PRTI || (under&0xFF) == PT_PRTO) if ((under&0xFF) == PT_WIFI/* || (under&0xFF) == PT_PRTI || (under&0xFF) == PT_PRTO*/)
{ {
float change; float change;
if (parts[i].temp<173.15f) change = -1000.0f; if (parts[i].temp<173.15f) change = -1000.0f;