Просмотр исходного кода

Merge arkanoid from https://github.com/xMasterX/all-the-plugins

# Conflicts:
#	arkanoid/arkanoid_game.c
Willy-JL 1 год назад
Родитель
Сommit
5252e2a66c
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      arkanoid/arkanoid_game.c

+ 2 - 2
arkanoid/arkanoid_game.c

@@ -356,16 +356,16 @@ static void arkanoid_draw_callback(Canvas* const canvas, void* ctx) {
 }
 
 static void arkanoid_input_callback(InputEvent* input_event, void* ctx) {
+    furi_assert(ctx);
     FuriMessageQueue* event_queue = ctx;
-    furi_assert(event_queue);
 
     GameEvent event = {.type = EventTypeKey, .input = *input_event};
     furi_message_queue_put(event_queue, &event, FuriWaitForever);
 }
 
 static void arkanoid_update_timer_callback(void* ctx) {
+    furi_assert(ctx);
     FuriMessageQueue* event_queue = ctx;
-    furi_assert(event_queue);
 
     GameEvent event = {.type = EventTypeTick};
     furi_message_queue_put(event_queue, &event, 0);