diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index 7cea39ca..ed1d44ab 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -767,8 +767,7 @@ void entityclass::createblock( int t, int xp, int yp, int w, int h, int trig /*= bool reuse = false; for (size_t i = 0; i < blocks.size(); ++i) { - if (blocks[i].type == -1 - && blocks[i].wp == 0 + if (blocks[i].wp == 0 && blocks[i].hp == 0 && blocks[i].rect.w == 0 && blocks[i].rect.h == 0) @@ -1107,8 +1106,6 @@ void entityclass::disableblock( int t ) return; } - blocks[t].type = -1; - blocks[t].wp = 0; blocks[t].hp = 0;