editor: fix div-by-zero

main
Dominik Madarász 2023-10-28 22:52:28 +02:00
parent 5cd68a5729
commit 9b66b5fdc1
2 changed files with 4 additions and 3 deletions

2
.gitignore vendored
View File

@ -14,7 +14,7 @@ demos/ports/doom/.doomrc
*.sublime-workspace *.sublime-workspace
engine/v4k.html engine/v4k.html
*.exe.manifest *.exe.manifest
*.log
v4k.osx v4k.osx
libv4k.* libv4k.*
editor editor

View File

@ -426,6 +426,7 @@ if "%1"=="tidy" (
del tools\*.exp > nul 2> nul del tools\*.exp > nul 2> nul
del *.lib > nul 2> nul del *.lib > nul 2> nul
del *.exe > nul 2> nul del *.exe > nul 2> nul
del *.log > nul 2> nul
del *.obj > nul 2> nul del *.obj > nul 2> nul
del tools\*.obj > nul 2> nul del tools\*.obj > nul 2> nul
del *.o > 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 rem editor
if "!editor!"=="yes" ( if "!editor!"=="yes" (
set edit=-DCOOK_ON_DEMAND -DUI_LESSER_SPACING -DUI_ICONS_SMALL 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! 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! 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 if "!cc!"=="cl" (
rem set plug_export=/LD rem set plug_export=/LD
rem ) else if "!cc!"=="clang-cl" ( rem ) else if "!cc!"=="clang-cl" (