Only show shadow BELOW current piece
This commit is contained in:
parent
625e7866a4
commit
a10f3cf47e
@ -746,7 +746,8 @@ void updateShadow(SDLPP::Scene &scene) {
|
|||||||
auto colY = col->getPos().second;
|
auto colY = col->getPos().second;
|
||||||
if(std::find(invalid_objects.begin(), invalid_objects.end(), col) != invalid_objects.end())
|
if(std::find(invalid_objects.begin(), invalid_objects.end(), col) != invalid_objects.end())
|
||||||
continue;
|
continue;
|
||||||
if(colY - curY < shadow_drop)
|
auto possible_drop = colY - curY;
|
||||||
|
if(possible_drop < shadow_drop && possible_drop >= 0)
|
||||||
shadow_drop = colY - curY;
|
shadow_drop = colY - curY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user