Browse Source

engine: fix char default signness

pull/2/head
Alibek Omarov 6 years ago
parent
commit
9048c108c4
  1. 8
      engine/common/filesystem.c
  2. 4
      engine/common/sequence.c

8
engine/common/filesystem.c

@ -128,8 +128,8 @@ static byte *W_LoadFile( const char *path, fs_offset_t *filesizeptr, qboolean ga @@ -128,8 +128,8 @@ static byte *W_LoadFile( const char *path, fs_offset_t *filesizeptr, qboolean ga
static wfile_t *W_Open( const char *filename, int *errorcode );
static qboolean FS_SysFolderExists( const char *path );
static int FS_SysFileTime( const char *filename );
static char W_TypeFromExt( const char *lumpname );
static const char *W_ExtFromType( char lumptype );
static signed char W_TypeFromExt( const char *lumpname );
static const char *W_ExtFromType( signed char lumptype );
static void FS_Purge( file_t* file );
/*
@ -3118,7 +3118,7 @@ W_TypeFromExt @@ -3118,7 +3118,7 @@ W_TypeFromExt
Extracts file type from extension
===========
*/
static char W_TypeFromExt( const char *lumpname )
static signed char W_TypeFromExt( const char *lumpname )
{
const char *ext = COM_FileExtension( lumpname );
const wadtype_t *type;
@ -3142,7 +3142,7 @@ W_ExtFromType @@ -3142,7 +3142,7 @@ W_ExtFromType
Convert type to extension
===========
*/
static const char *W_ExtFromType( char lumptype )
static const char *W_ExtFromType( signed char lumptype )
{
const wadtype_t *type;

4
engine/common/sequence.c

@ -89,8 +89,8 @@ void Sequence_ResetDefaults( sequenceCommandLine_s *destination, sequenceCommand @@ -89,8 +89,8 @@ void Sequence_ResetDefaults( sequenceCommandLine_s *destination, sequenceCommand
static client_textmessage_t defaultClientMessage =
{
0, // effect
-1, -1, -1, -1, // rgba1
-1, -1, -1, -1, // rgba2
255, 255, 255, 255, // rgba1
255, 255, 255, 255, // rgba2
0.5, 0.5, // xy
0.2, 0.2, // fade-in/out
1.6, // holdtime

Loading…
Cancel
Save