]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/background.c
(#819) Integrate LevelEditor Regions with Level
[nothing.git] / src / game / level / background.c
index ea3d7cde566b4a7bbba56679124abe7839ac8345..bb1fa606133c5f8686f77638f20858d1b5a67cd8 100644 (file)
@@ -1,4 +1,4 @@
-#include "system/stacktrace.h"
+#include <stdio.h>
 
 #include "game/level/background.h"
 #include "math/rand.h"
@@ -7,6 +7,7 @@
 #include "system/lt.h"
 #include "system/nth_alloc.h"
 #include "system/log.h"
+#include "system/stacktrace.h"
 
 #define BACKGROUND_CHUNK_COUNT 5
 #define BACKGROUND_CHUNK_WIDTH 250.0f
@@ -31,9 +32,6 @@ struct Background
 Background *create_background(Color base_color)
 {
     Lt *lt = create_lt();
-    if (lt == NULL) {
-        return NULL;
-    }
 
     Background *background = PUSH_LT(lt, nth_calloc(1, sizeof(Background)), free);
     if (background == NULL) {