Permalink
Browse files

prevent PROT from rapidly changing portal temps

  • Loading branch information...
jacob1 committed Aug 6, 2014
1 parent e4b08c8 commit 859fdece6a8438f1817b38ab133b5b718fc3afe0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/simulation/elements/PROT.cpp
@@ -92,7 +92,7 @@ int Element_PROT::update(UPDATE_FUNC_ARGS)
if (under)
{
//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;
if (parts[i].temp<173.15f) change = -1000.0f;

0 comments on commit 859fdec

Please sign in to comment.