mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
Make it so you can at least go into third person when map fails to load
This commit is contained in:
parent
c7c26502df
commit
0654dc0f41
@ -67,7 +67,7 @@ void Map_LoadFrom(const String* path) {
|
||||
importer = Map_FindImporter(path);
|
||||
if ((res = importer(&stream))) {
|
||||
World_Reset();
|
||||
Logger_Warn2(res, "decoding", path); stream.Close(&stream); return;
|
||||
Logger_Warn2(res, "decoding", path);
|
||||
}
|
||||
|
||||
res = stream.Close(&stream);
|
||||
|
@ -636,7 +636,7 @@ static void Game_RenderFrame(double delta) {
|
||||
Camera.CurrentPos = Camera.Active->GetPosition(t);
|
||||
UpdateViewMatrix();
|
||||
|
||||
if (!Gui_GetBlocksWorld() && World.Blocks) {
|
||||
if (!Gui_GetBlocksWorld()) {
|
||||
Game_Render3D(delta, t);
|
||||
} else {
|
||||
RayTracer_SetInvalid(&Game_SelectedPos);
|
||||
|
@ -108,8 +108,8 @@ static int Program_Run(int argc, char** argv) {
|
||||
#ifdef _MSC_VER
|
||||
/* NOTE: Make sure to comment this out before pushing a commit */
|
||||
//String rawArgs = String_FromConst("UnknownShadow200 fffff 127.0.0.1 25565");
|
||||
//String rawArgs = String_FromConst("UnknownShadow200");
|
||||
//argsCount = String_UNSAFE_Split(&rawArgs, ' ', args, 4);
|
||||
String rawArgs = String_FromConst("UnknownShadow200");
|
||||
argsCount = String_UNSAFE_Split(&rawArgs, ' ', args, 4);
|
||||
#endif
|
||||
|
||||
if (argsCount == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user