diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index 27bb6d5f..ff45c43b 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -3859,37 +3859,12 @@ bool entityclass::entitycollide( int a, int b ) return false; } -bool entityclass::checkdamage() +bool entityclass::checkdamage(bool scm /*= false*/) { - //Returns true if player entity (rule 0) collides with a damagepoint + //Returns true if player (or supercrewmate) collides with a damagepoint for(size_t i=0; i < entities.size(); i++) { - if(entities[i].rule==0) - { - tempx = entities[i].xp + entities[i].cx; - tempy = entities[i].yp + entities[i].cy; - tempw = entities[i].w; - temph = entities[i].h; - rectset(tempx, tempy, tempw, temph); - - for (size_t j=0; j