File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ void JewelBoard::shiftDown(BoardPos pos)
136
136
137
137
{
138
138
BoardPos next = pos.getBelow ();
139
+ // @bug still would rarely fails.pending to investigate
139
140
// assert(getJewel(next).isDead());
140
141
LOG_INFO (" jewel " << next << " popped up " );
141
142
@@ -163,7 +164,7 @@ void JewelBoard::update()
163
164
JewelObject &jo = getJewel (pos);
164
165
if (jo.isFallDone ())
165
166
shiftDown (pos);
166
- if (pos.m_row > 0 && (jo.isFalling () || jo.isDead ()))
167
+ if (pos.m_row > 0 && !jo. isDying () && (jo.isFalling () || jo.isDead ()))
167
168
{
168
169
BoardPos const upperPos = BoardPos (pos.m_col , pos.m_row - 1 );
169
170
JewelObject &upper = getJewel (upperPos);
Original file line number Diff line number Diff line change 11
11
#include " TextureManager.h"
12
12
#include " Game.h"
13
13
14
- const short JewelObject::FALLING_STEPS = 60 ;
14
+ const short JewelObject::FALLING_STEPS = 30 ;
15
15
16
16
JewelObject::JewelObject (Jewel &jewel, bool firstRow) :
17
17
m_model(&jewel),
You can’t perform that action at this time.
0 commit comments