engine: fix some const qualifier lose and pointer-to-int casts

This commit is contained in:
Alibek Omarov
2021-07-20 16:03:06 +03:00
parent c3da9d8c8f
commit 0efc5e82ec
22 changed files with 43 additions and 40 deletions
+3 -4
View File
@@ -990,13 +990,12 @@ void GAME_EXPORT Con_DrawStringLen( const char *pText, int *length, int *height
{
int curLength = 0;
if( !con.curFont ) return;
if( height ) *height = con.curFont->charHeight;
if( !length ) return;
*length = 0;
if( !con.curFont ) return;
if( height ) *height = con.curFont->charHeight;
while( *pText )
{
byte c = *pText;