From bb8b816a3b7b73a1d5cb0e22b051575a26c55496 Mon Sep 17 00:00:00 2001 From: Kapendev Date: Sat, 15 Jun 2024 02:02:38 +0300 Subject: [PATCH] Oops. --- source/popka/game/engine.d | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/popka/game/engine.d b/source/popka/game/engine.d index 9636a07..46a001a 100644 --- a/source/popka/game/engine.d +++ b/source/popka/game/engine.d @@ -450,7 +450,6 @@ struct TileMap { if (path.length != 0) { parse(loadTempText(path)); } - if (isEmpty) printfln("Error: The file `{}` does not exist.", path); } } @@ -546,7 +545,6 @@ List!char loadText(const(char)[] path) { /// Can handle both forward slashes and backslashes in file paths, ensuring compatibility across operating systems. const(char)[] loadTempText(const(char)[] path) { loadText(path, engineState.tempText); - if (engineState.tempText.length == 0) printfln("Error: The file `{}` does not exist.", path); return engineState.tempText.items; }