fixed empty list bug #21

Merged
s473598 merged 1 commits from fix_empty_package_list_bug into master 2023-05-30 21:38:25 +02:00
2 changed files with 27 additions and 25 deletions
Showing only changes of commit 57d299e767 - Show all commits

Binary file not shown.

View File

@ -31,6 +31,8 @@ def main():
sys.exit(0)
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_SPACE:
## sprawdzenie czy lista z paczkami nie jest pusta
if ekran.lista_paczek:
## wozek jedzie po paczke
wiersz = ekran.sprawdz_ktory_wiersz(a_pix)
kolumna = ekran.sprawdz_ktora_kolumna(b_pix)