mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-10 14:12:04 +08:00
engine: use Sys_GetIntFromCmdLine where possible
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user