From 9b66b5fdc138441f369c030405993bbe7162de89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Sat, 28 Oct 2023 22:52:28 +0200 Subject: [PATCH] editor: fix div-by-zero --- .gitignore | 2 +- MAKE.bat | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2f6caed..cccd20e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,7 @@ demos/ports/doom/.doomrc *.sublime-workspace engine/v4k.html *.exe.manifest - +*.log v4k.osx libv4k.* editor diff --git a/MAKE.bat b/MAKE.bat index da24fc6..7f09c32 100644 --- a/MAKE.bat +++ b/MAKE.bat @@ -426,6 +426,7 @@ if "%1"=="tidy" ( del tools\*.exp > nul 2> nul del *.lib > nul 2> nul del *.exe > nul 2> nul + del *.log > nul 2> nul del *.obj > nul 2> nul del tools\*.obj > nul 2> nul del *.o > nul 2> nul @@ -753,6 +754,8 @@ if "!v4k!"=="yes" ( ) ) +!echo! v4k && !cc! engine\v4k.c !export! !edit! !args! || set rc=1 + rem editor if "!editor!"=="yes" ( set edit=-DCOOK_ON_DEMAND -DUI_LESSER_SPACING -DUI_ICONS_SMALL @@ -760,8 +763,6 @@ if "!vis!"=="yes" echo !cc! !o! editor.exe tools\editor\editor.c !edit! !impor !echo! editor && !cc! !o! editor.exe tools\editor\editor.c !edit! !import! !args! || set rc=1 !echo! editor3 && !cc! !o! editor3.exe tools\editor\editor3.c !edit! -Iengine/joint !args! || set rc=1 -!echo! v4k && !cc! engine\v4k.c !export! !edit! !args! || set rc=1 - rem if "!cc!"=="cl" ( rem set plug_export=/LD rem ) else if "!cc!"=="clang-cl" (