engine: use Sys_GetIntFromCmdLine where possible

This commit is contained in:
Alibek Omarov
2026-01-20 22:30:39 +05:00
parent 77123f710b
commit c5f90aabd6
2 changed files with 8 additions and 15 deletions
+1 -1
View File
@@ -628,7 +628,7 @@ static void SetWidthAndHeightFromCommandLine( void )
Sys_GetIntFromCmdLine( "-width", &width );
Sys_GetIntFromCmdLine( "-height", &height );
if( width < 1 || height < 1 )
if( width < VID_MIN_WIDTH || height < VID_MIN_HEIGHT )
{
// Not specified or invalid, so don't bother.
return;