Added FEATURE flag, fixed rare segfault
This commit is contained in:
@@ -101,6 +101,9 @@ check_floor:
|
||||
g_update_scenes.push_back(g_game_over_scene);
|
||||
g_active_scenes.push_back( g_game_over_scene );
|
||||
g_input_functions.push_back( gameOverSceneInput );
|
||||
#ifdef FEATURE
|
||||
pauseBlocks();
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -419,6 +422,19 @@ void updateBlocks() {
|
||||
x->specialAction( PIECE_ACTION_UPDATE_BLOCK );
|
||||
}
|
||||
}
|
||||
#ifdef FEATURE
|
||||
void pauseBlocks() {
|
||||
for ( auto &x : g_main_scene->getObjects( { BRICK_ID, SHADOW_ID } ) ) {
|
||||
x->pauseAnimation();
|
||||
}
|
||||
}
|
||||
|
||||
void resumeBlocks() {
|
||||
for ( auto &x : g_main_scene->getObjects( { BRICK_ID, SHADOW_ID } ) ) {
|
||||
x->resumeAnimation();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void updateColors() {
|
||||
for ( auto &x : g_main_scene->getObjects( { BRICK_ID, SHADOW_ID } ) ) {
|
||||
|
||||
Reference in New Issue
Block a user