mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-23 13:02:07 +00:00
make cppcheck happy and use same version messages as other renders
This commit is contained in:
parent
aaade648b9
commit
b3c23dee5b
3 changed files with 8 additions and 7 deletions
|
@ -31,7 +31,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#define REF_VERSION "SOFT 0.01"
|
#define REF_VERSION "Yamagi Quake II Software Refresher"
|
||||||
|
|
||||||
// up / down
|
// up / down
|
||||||
#define PITCH 0
|
#define PITCH 0
|
||||||
|
|
|
@ -423,6 +423,9 @@ R_Init
|
||||||
static qboolean
|
static qboolean
|
||||||
RE_Init(void)
|
RE_Init(void)
|
||||||
{
|
{
|
||||||
|
R_Printf(PRINT_ALL, "Refresh: " REF_VERSION "\n");
|
||||||
|
R_Printf(PRINT_ALL, "Client: " YQ2VERSION "\n\n");
|
||||||
|
|
||||||
R_RegisterVariables ();
|
R_RegisterVariables ();
|
||||||
R_InitImages ();
|
R_InitImages ();
|
||||||
Mod_Init ();
|
Mod_Init ();
|
||||||
|
@ -455,8 +458,6 @@ RE_Init(void)
|
||||||
// create the window
|
// create the window
|
||||||
ri.Vid_MenuInit();
|
ri.Vid_MenuInit();
|
||||||
|
|
||||||
R_Printf(PRINT_ALL, "ref_soft version: "REF_VERSION"\n");
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1480,7 +1481,7 @@ RE_SetMode(void)
|
||||||
vid_fullscreen->modified = false;
|
vid_fullscreen->modified = false;
|
||||||
R_Printf(PRINT_ALL, "%s() - fullscreen unavailable in this mode\n", __func__);
|
R_Printf(PRINT_ALL, "%s() - fullscreen unavailable in this mode\n", __func__);
|
||||||
|
|
||||||
if ((err = SWimp_SetMode(&vid.width, &vid.height, r_mode->value, 0)) == rserr_ok)
|
if ((SWimp_SetMode(&vid.width, &vid.height, r_mode->value, 0)) == rserr_ok)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1501,7 +1502,7 @@ RE_SetMode(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* try setting it back to something safe */
|
/* try setting it back to something safe */
|
||||||
if ((err = SWimp_SetMode(&vid.width, &vid.height, sw_state.prev_mode, 0)) != rserr_ok)
|
if ((SWimp_SetMode(&vid.width, &vid.height, sw_state.prev_mode, 0)) != rserr_ok)
|
||||||
{
|
{
|
||||||
R_Printf(PRINT_ALL, "%s() - could not revert to safe mode\n", __func__);
|
R_Printf(PRINT_ALL, "%s() - could not revert to safe mode\n", __func__);
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -140,7 +140,7 @@ Mod_ForName (char *name, qboolean crash)
|
||||||
if (i == mod_numknown)
|
if (i == mod_numknown)
|
||||||
{
|
{
|
||||||
if (mod_numknown == MAX_MOD_KNOWN)
|
if (mod_numknown == MAX_MOD_KNOWN)
|
||||||
ri.Sys_Error(ERR_DROP, "mod_numknown == MAX_MOD_KNOWN");
|
ri.Sys_Error(ERR_DROP, "%s: mod_numknown == MAX_MOD_KNOWN", __func__);
|
||||||
mod_numknown++;
|
mod_numknown++;
|
||||||
}
|
}
|
||||||
strcpy (mod->name, name);
|
strcpy (mod->name, name);
|
||||||
|
@ -962,7 +962,7 @@ Mod_LoadBrushModel(model_t *mod, void *buffer, int modfilelen)
|
||||||
dmodel_t *bm;
|
dmodel_t *bm;
|
||||||
|
|
||||||
if (loadmodel != mod_known)
|
if (loadmodel != mod_known)
|
||||||
ri.Sys_Error(ERR_DROP, "Loaded a brush model after the world");
|
ri.Sys_Error(ERR_DROP, "%s: Loaded a brush model after the world", __func__);
|
||||||
|
|
||||||
header = (dheader_t *)buffer;
|
header = (dheader_t *)buffer;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue