Start pieces from higher up

This commit is contained in:
zvon 2020-08-24 20:46:10 +02:00
parent 194981a3d3
commit f36890e124

View File

@ -1006,7 +1006,7 @@ int main() {
if ( !cur_object && checked_line ) { if ( !cur_object && checked_line ) {
std::lock_guard< std::mutex > guard( movement_mutex ); std::lock_guard< std::mutex > guard( movement_mutex );
cur_object = next_object; cur_object = next_object;
cur_object->setPos( 0.5, TOP_BORDER ); cur_object->setPos( 0.5, TOP_BORDER - BLOCK_SIZE );
auto rand_index = std::rand() / ( ( RAND_MAX + 1u ) / 7 ); auto rand_index = std::rand() / ( ( RAND_MAX + 1u ) / 7 );
int retries = 0; int retries = 0;
while ( bag[rand_index] < 4 ) { while ( bag[rand_index] < 4 ) {