11 Sep 2018
This commit is contained in:
parent
c37b39c93f
commit
12af8403ca
|
@ -152,7 +152,7 @@ qboolean CL_ScreenshotGetName( int lastnum, char *filename )
|
|||
|
||||
if( lastnum < 0 || lastnum > 9999 )
|
||||
{
|
||||
MsgDev( D_ERROR, "unable to write screenshot\n" );
|
||||
Con_Printf( S_ERROR "unable to write screenshot\n" );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,7 @@ qboolean CL_SnapshotGetName( int lastnum, char *filename )
|
|||
|
||||
if( lastnum < 0 || lastnum > 9999 )
|
||||
{
|
||||
MsgDev( D_ERROR, "unable to write snapshot\n" );
|
||||
Con_Printf( S_ERROR "unable to write snapshot\n" );
|
||||
FS_AllowDirectPaths( false );
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -44,19 +44,19 @@ qboolean CL_CheckFile( sizebuf_t *msg, resource_t *pResource )
|
|||
|
||||
if( !COM_IsSafeFileToDownload( filepath ))
|
||||
{
|
||||
MsgDev( D_REPORT, "refusing to download %s\n", filepath );
|
||||
Con_Reportf( "refusing to download %s\n", filepath );
|
||||
return true;
|
||||
}
|
||||
|
||||
if( !cl_allow_download.value )
|
||||
{
|
||||
MsgDev( D_REPORT, "Download refused, cl_allow_download is 0\n" );
|
||||
Con_Reportf( "Download refused, cl_allow_download is 0\n" );
|
||||
return true;
|
||||
}
|
||||
|
||||
if( cls.state == ca_active && !cl_download_ingame.value )
|
||||
{
|
||||
MsgDev( D_REPORT, "In-game download refused...\n" );
|
||||
Con_Reportf( "In-game download refused...\n" );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ qboolean CL_CheckFile( sizebuf_t *msg, resource_t *pResource )
|
|||
|
||||
if( cls.demoplayback )
|
||||
{
|
||||
MsgDev( D_WARN, "file %s missing during demo playback.\n", filepath );
|
||||
Con_Reportf( S_WARN "file %s missing during demo playback.\n", filepath );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@ void CL_AddToResourceList( resource_t *pResource, resource_t *pList )
|
|||
{
|
||||
if( pResource->pPrev != NULL || pResource->pNext != NULL )
|
||||
{
|
||||
MsgDev( D_ERROR, "Resource already linked\n" );
|
||||
Con_Reportf( S_ERROR "Resource already linked\n" );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ void CL_MoveToOnHandList( resource_t *pResource )
|
|||
{
|
||||
if( !pResource )
|
||||
{
|
||||
MsgDev( D_REPORT, "Null resource passed to CL_MoveToOnHandList\n" );
|
||||
Con_Reportf( "Null resource passed to CL_MoveToOnHandList\n" );
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -635,7 +635,7 @@ void CL_DeltaEntity( sizebuf_t *msg, frame_t *frame, int newnum, entity_state_t
|
|||
|
||||
if(( newnum < 0 ) || ( newnum >= clgame.maxEntities ))
|
||||
{
|
||||
MsgDev( D_ERROR, "CL_DeltaEntity: invalid newnum: %d\n", newnum );
|
||||
Con_DPrintf( S_ERROR "CL_DeltaEntity: invalid newnum: %d\n", newnum );
|
||||
if( has_update )
|
||||
MSG_ReadDeltaEntity( msg, old, state, newnum, delta_type, cl.mtime[0] );
|
||||
return;
|
||||
|
@ -734,7 +734,6 @@ int CL_ParsePacketEntities( sizebuf_t *msg, qboolean delta )
|
|||
|
||||
if(( cls.next_client_entities - oldframe->first_entity ) > ( cls.num_client_entities - NUM_PACKET_ENTITIES ))
|
||||
{
|
||||
MsgDev( D_NOTE, "CL_ParsePacketEntities: delta frame is too old (flush)\n");
|
||||
Con_NPrintf( 2, "^3Warning:^1 delta frame is too old^7\n" );
|
||||
CL_FlushEntityPacket( msg );
|
||||
return playerbytes;
|
||||
|
@ -847,7 +846,7 @@ int CL_ParsePacketEntities( sizebuf_t *msg, qboolean delta )
|
|||
}
|
||||
|
||||
if( newframe->num_entities != count && newframe->num_entities != 0 )
|
||||
MsgDev( D_WARN, "CL_Parse%sPacketEntities: (%i should be %i)\n", delta ? "Delta" : "", newframe->num_entities, count );
|
||||
Con_Reportf( S_WARN "CL_Parse%sPacketEntities: (%i should be %i)\n", delta ? "Delta" : "", newframe->num_entities, count );
|
||||
|
||||
if( !newframe->valid )
|
||||
return playerbytes; // frame is not valid but message was parsed
|
||||
|
@ -943,7 +942,7 @@ void CL_LinkCustomEntity( cl_entity_t *ent, entity_state_t *state )
|
|||
ent->curstate.movetype = state->modelindex; // !!!
|
||||
|
||||
if( ent->model->type != mod_sprite )
|
||||
MsgDev( D_WARN, "bad model on beam ( %s )\n", ent->model->name );
|
||||
Con_Reportf( S_WARN "bad model on beam ( %s )\n", ent->model->name );
|
||||
|
||||
ent->latched.prevsequence = ent->curstate.sequence;
|
||||
VectorCopy( ent->origin, ent->latched.prevorigin );
|
||||
|
@ -1060,7 +1059,7 @@ void CL_LinkPacketEntities( frame_t *frame )
|
|||
|
||||
if( !ent )
|
||||
{
|
||||
MsgDev( D_ERROR, "CL_LinkPacketEntity: bad entity %i\n", state->number );
|
||||
Con_Reportf( S_ERROR "CL_LinkPacketEntity: bad entity %i\n", state->number );
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -237,7 +237,7 @@ void CL_InitCDAudio( const char *filename )
|
|||
|
||||
if( ++c > MAX_CDTRACKS - 1 )
|
||||
{
|
||||
MsgDev( D_WARN, "CD_Init: too many tracks %i in %s\n", MAX_CDTRACKS, filename );
|
||||
Con_Reportf( S_WARN "CD_Init: too many tracks %i in %s\n", MAX_CDTRACKS, filename );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -826,14 +826,14 @@ const char *CL_SoundFromIndex( int index )
|
|||
|
||||
if( !hSound )
|
||||
{
|
||||
MsgDev( D_ERROR, "CL_SoundFromIndex: invalid sound index %i\n", index );
|
||||
Con_DPrintf( S_ERROR "CL_SoundFromIndex: invalid sound index %i\n", index );
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sfx = S_GetSfxByHandle( hSound );
|
||||
if( !sfx )
|
||||
{
|
||||
MsgDev( D_ERROR, "CL_SoundFromIndex: bad sfx for index %i\n", index );
|
||||
Con_DPrintf( S_ERROR "CL_SoundFromIndex: bad sfx for index %i\n", index );
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1211,7 +1211,7 @@ static qboolean CL_LoadHudSprite( const char *szSpriteName, model_t *m_pSprite,
|
|||
}
|
||||
else
|
||||
{
|
||||
Con_Printf( S_ERROR "%s couldn't load\n", szSpriteName );
|
||||
Con_Reportf( S_ERROR "%s couldn't load\n", szSpriteName );
|
||||
Mod_UnloadSpriteModel( m_pSprite );
|
||||
return false;
|
||||
}
|
||||
|
@ -1253,7 +1253,7 @@ static model_t *CL_LoadSpriteModel( const char *filename, uint type, uint texFla
|
|||
|
||||
if( !COM_CheckString( filename ))
|
||||
{
|
||||
MsgDev( D_ERROR, "CL_LoadSpriteModel: bad name!\n" );
|
||||
Con_Reportf( S_ERROR "CL_LoadSpriteModel: bad name!\n" );
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1802,12 +1802,8 @@ static void pfnPlaySoundByIndex( int iSound, float volume )
|
|||
// make sure what we in-bounds
|
||||
iSound = bound( 0, iSound, MAX_SOUNDS );
|
||||
hSound = cl.sound_index[iSound];
|
||||
if( !hSound ) return;
|
||||
|
||||
if( !hSound )
|
||||
{
|
||||
MsgDev( D_ERROR, "CL_PlaySoundByIndex: invalid sound handle %i\n", iSound );
|
||||
return;
|
||||
}
|
||||
S_StartSound( NULL, cl.viewentity, CHAN_ITEM, hSound, volume, ATTN_NORM, PITCH_NORM, SND_STOP_LOOPING );
|
||||
}
|
||||
|
||||
|
@ -2250,7 +2246,7 @@ static void pfnHookEvent( const char *filename, pfnEventHook pfn )
|
|||
|
||||
if( !Q_stricmp( name, ev->name ) && ev->func != NULL )
|
||||
{
|
||||
MsgDev( D_WARN, "CL_HookEvent: %s already hooked!\n", name );
|
||||
Con_Reportf( S_WARN "CL_HookEvent: %s already hooked!\n", name );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -3336,7 +3332,7 @@ void NetAPI_SendRequest( int context, int request, int flags, double timeout, ne
|
|||
|
||||
if( !response )
|
||||
{
|
||||
MsgDev( D_ERROR, "Net_SendRequest: no callbcak specified for request with context %i!\n", context );
|
||||
Con_DPrintf( S_ERROR "Net_SendRequest: no callbcak specified for request with context %i!\n", context );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -3954,7 +3950,7 @@ qboolean CL_LoadProgs( const char *name )
|
|||
// trying to get single export
|
||||
if(( GetClientAPI = (void *)COM_GetProcAddress( clgame.hInstance, "GetClientAPI" )) != NULL )
|
||||
{
|
||||
MsgDev( D_NOTE, "CL_LoadProgs: found single callback export\n" );
|
||||
Con_Reportf( "CL_LoadProgs: found single callback export\n" );
|
||||
|
||||
// trying to fill interface now
|
||||
GetClientAPI( &clgame.dllFuncs );
|
||||
|
@ -3979,7 +3975,7 @@ qboolean CL_LoadProgs( const char *name )
|
|||
// functions are cleared before all the extensions are evaluated
|
||||
if(( *func->func = (void *)COM_GetProcAddress( clgame.hInstance, func->name )) == NULL )
|
||||
{
|
||||
MsgDev( D_NOTE, "CL_LoadProgs: failed to get address of %s proc\n", func->name );
|
||||
Con_Reportf( "CL_LoadProgs: failed to get address of %s proc\n", func->name );
|
||||
|
||||
if( critical_exports )
|
||||
{
|
||||
|
@ -4006,13 +4002,13 @@ qboolean CL_LoadProgs( const char *name )
|
|||
// functions are cleared before all the extensions are evaluated
|
||||
// NOTE: new exports can be missed without stop the engine
|
||||
if(( *func->func = (void *)COM_GetProcAddress( clgame.hInstance, func->name )) == NULL )
|
||||
MsgDev( D_NOTE, "CL_LoadProgs: failed to get address of %s proc\n", func->name );
|
||||
Con_Reportf( "CL_LoadProgs: failed to get address of %s proc\n", func->name );
|
||||
}
|
||||
|
||||
if( !clgame.dllFuncs.pfnInitialize( &gEngfuncs, CLDLL_INTERFACE_VERSION ))
|
||||
{
|
||||
COM_FreeLibrary( clgame.hInstance );
|
||||
MsgDev( D_NOTE, "CL_LoadProgs: can't init client API\n" );
|
||||
Con_Reportf( "CL_LoadProgs: can't init client API\n" );
|
||||
clgame.hInstance = NULL;
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -159,7 +159,7 @@ static void UI_DrawLogo( const char *filename, float x, float y, float width, fl
|
|||
|
||||
if( FS_FileExists( path, false ) && !fullpath )
|
||||
{
|
||||
MsgDev( D_ERROR, "Couldn't load %s from packfile. Please extract it\n", path );
|
||||
Con_Printf( S_ERROR "Couldn't load %s from packfile. Please extract it\n", path );
|
||||
gameui.drawLogo = false;
|
||||
return;
|
||||
}
|
||||
|
@ -378,7 +378,7 @@ static HIMAGE pfnPIC_Load( const char *szPicName, const byte *image_buf, long im
|
|||
|
||||
if( !szPicName || !*szPicName )
|
||||
{
|
||||
MsgDev( D_ERROR, "CL_LoadImage: bad name!\n" );
|
||||
Con_Reportf( S_ERROR "CL_LoadImage: bad name!\n" );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1039,7 +1039,7 @@ qboolean UI_LoadProgs( void )
|
|||
if(( GetMenuAPI = (MENUAPI)COM_GetProcAddress( gameui.hInstance, "GetMenuAPI" )) == NULL )
|
||||
{
|
||||
COM_FreeLibrary( gameui.hInstance );
|
||||
MsgDev( D_NOTE, "UI_LoadProgs: can't init menu API\n" );
|
||||
Con_Reportf( "UI_LoadProgs: can't init menu API\n" );
|
||||
gameui.hInstance = NULL;
|
||||
return false;
|
||||
}
|
||||
|
@ -1052,7 +1052,7 @@ qboolean UI_LoadProgs( void )
|
|||
if( !GetMenuAPI( &gameui.dllFuncs, &gpEngfuncs, gameui.globals ))
|
||||
{
|
||||
COM_FreeLibrary( gameui.hInstance );
|
||||
MsgDev( D_NOTE, "UI_LoadProgs: can't init menu API\n" );
|
||||
Con_Reportf( "UI_LoadProgs: can't init menu API\n" );
|
||||
Mem_FreePool( &gameui.mempool );
|
||||
gameui.hInstance = NULL;
|
||||
return false;
|
||||
|
|
|
@ -265,7 +265,7 @@ static float CL_LerpPoint( void )
|
|||
f = 0.1f;
|
||||
}
|
||||
#if 1
|
||||
frac = (cl.time - cl.mtime[0]) / f;
|
||||
frac = (cl.time - cl.mtime[1]) / f;
|
||||
|
||||
if( frac < 0.0f )
|
||||
{
|
||||
|
@ -288,7 +288,7 @@ static float CL_LerpPoint( void )
|
|||
else if( f > 0.001f )
|
||||
{
|
||||
// automatic lerp (classic mode)
|
||||
frac = ( cl.time - cl.mtime[0] ) / f;
|
||||
frac = ( cl.time - cl.mtime[1] ) / f;
|
||||
}
|
||||
#endif
|
||||
return frac;
|
||||
|
|
|
@ -2101,8 +2101,11 @@ void CL_ParseServerMessage( sizebuf_t *msg, qboolean normal_message )
|
|||
break;
|
||||
case svc_stufftext:
|
||||
s = MSG_ReadString( msg );
|
||||
#ifdef HACKS_RELATED_HLMODS
|
||||
// dsiable Cry Of Fear antisave protection
|
||||
if( !Q_strnicmp( s, "disconnect", 10 ) && cls.signon != SIGNONS )
|
||||
break; // too early
|
||||
#endif
|
||||
Cbuf_AddText( s );
|
||||
break;
|
||||
case svc_setangle:
|
||||
|
|
|
@ -179,7 +179,7 @@ void CL_UpdateStudioTexture( mstudiotexture_t *ptexture, int topcolor, int botto
|
|||
pic = FS_LoadImage( glt->name, raw, size );
|
||||
if( !pic )
|
||||
{
|
||||
MsgDev( D_ERROR, "Couldn't update texture %s\n", glt->name );
|
||||
Con_DPrintf( S_ERROR "Couldn't update texture %s\n", glt->name );
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -276,9 +276,9 @@ void SCR_MakeScreenShot( void )
|
|||
{
|
||||
// snapshots don't writes message about image
|
||||
if( cls.scrshot_action != scrshot_snapshot )
|
||||
MsgDev( D_REPORT, "Write %s\n", cls.shotname );
|
||||
Con_Reportf( "Write %s\n", cls.shotname );
|
||||
}
|
||||
else MsgDev( D_ERROR, "Unable to write %s\n", cls.shotname );
|
||||
else Con_Printf( S_ERROR "Unable to write %s\n", cls.shotname );
|
||||
|
||||
cls.envshot_vieworg = NULL;
|
||||
cls.scrshot_action = scrshot_inactive;
|
||||
|
@ -569,7 +569,7 @@ void SCR_LoadCreditsFont( void )
|
|||
if( !SCR_LoadVariableWidthFont( "gfx.wad/creditsfont.fnt" ))
|
||||
{
|
||||
if( !SCR_LoadFixedWidthFont( "gfx/conchars" ))
|
||||
MsgDev( D_ERROR, "failed to load HUD font\n" );
|
||||
Con_DPrintf( S_ERROR "failed to load HUD font\n" );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -707,7 +707,6 @@ void SCR_Init( void )
|
|||
{
|
||||
if( scr_init ) return;
|
||||
|
||||
MsgDev( D_NOTE, "SCR_Init()\n" );
|
||||
scr_centertime = Cvar_Get( "scr_centertime", "2.5", 0, "centerprint hold time" );
|
||||
cl_levelshot_name = Cvar_Get( "cl_levelshot_name", "*black", 0, "contains path to current levelshot" );
|
||||
cl_allow_levelshots = Cvar_Get( "allow_levelshots", "0", FCVAR_ARCHIVE, "allow engine to use indivdual levelshots instead of 'loading' image" );
|
||||
|
@ -750,7 +749,6 @@ void SCR_Shutdown( void )
|
|||
{
|
||||
if( !scr_init ) return;
|
||||
|
||||
MsgDev( D_NOTE, "SCR_Shutdown()\n" );
|
||||
Cmd_RemoveCommand( "timerefresh" );
|
||||
Cmd_RemoveCommand( "skyname" );
|
||||
Cmd_RemoveCommand( "viewpos" );
|
||||
|
|
|
@ -209,7 +209,7 @@ qboolean SCR_PlayCinematic( const char *arg )
|
|||
|
||||
if( FS_FileExists( arg, false ) && !fullpath )
|
||||
{
|
||||
MsgDev( D_ERROR, "Couldn't load %s from packfile. Please extract it\n", path );
|
||||
Con_Printf( S_ERROR "Couldn't load %s from packfile. Please extract it\n", path );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -286,7 +286,7 @@ qboolean V_PreRender( void )
|
|||
{
|
||||
if(( host.realtime - cls.disable_screen ) > cl_timeout->value )
|
||||
{
|
||||
MsgDev( D_ERROR, "V_PreRender: loading plaque timed out\n" );
|
||||
Con_Reportf( "V_PreRender: loading plaque timed out\n" );
|
||||
cls.disable_screen = 0.0f;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -185,7 +185,7 @@ void GL_SelectTexture( GLint tmu )
|
|||
|
||||
if( tmu >= GL_MaxTextureUnits( ))
|
||||
{
|
||||
MsgDev( D_ERROR, "GL_SelectTexture: bad tmu state %i\n", tmu );
|
||||
Con_Reportf( S_ERROR "GL_SelectTexture: bad tmu state %i\n", tmu );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -278,7 +278,7 @@ void GL_TextureTarget( uint target )
|
|||
{
|
||||
if( glState.activeTMU < 0 || glState.activeTMU >= GL_MaxTextureUnits( ))
|
||||
{
|
||||
MsgDev( D_ERROR, "GL_TextureTarget: bad tmu state %i\n", glState.activeTMU );
|
||||
Con_Reportf( S_ERROR "GL_TextureTarget: bad tmu state %i\n", glState.activeTMU );
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -266,7 +266,7 @@ static qboolean R_BeamComputePoint( int beamEnt, vec3_t pt )
|
|||
|
||||
if( !ent )
|
||||
{
|
||||
MsgDev( D_ERROR, "R_BeamComputePoint: invalid entity %i\n", BEAMENT_ENTITY( beamEnt ));
|
||||
Con_DPrintf( S_ERROR "R_BeamComputePoint: invalid entity %i\n", BEAMENT_ENTITY( beamEnt ));
|
||||
VectorClear( pt );
|
||||
return false;
|
||||
}
|
||||
|
@ -1371,7 +1371,7 @@ void CL_AddCustomBeam( cl_entity_t *pEnvBeam )
|
|||
{
|
||||
if( tr.draw_list->num_beam_entities >= MAX_VISIBLE_PACKET )
|
||||
{
|
||||
MsgDev( D_ERROR, "Too many custom beams %d!\n", tr.draw_list->num_beam_entities );
|
||||
Con_Printf( S_ERROR "Too many beams %d!\n", tr.draw_list->num_beam_entities );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1865,7 +1865,6 @@ void CL_ParseViewBeam( sizebuf_t *msg, int beamType )
|
|||
R_BeamEnts( startEnt, endEnt, modelIndex, life, width, noise, a, speed, startFrame, frameRate, r, g, b );
|
||||
break;
|
||||
case TE_BEAM:
|
||||
MsgDev( D_ERROR, "TE_BEAM is obsolete\n" );
|
||||
break;
|
||||
case TE_BEAMSPRITE:
|
||||
start[0] = MSG_ReadCoord( msg );
|
||||
|
@ -1928,7 +1927,6 @@ void CL_ParseViewBeam( sizebuf_t *msg, int beamType )
|
|||
R_BeamRing( startEnt, endEnt, modelIndex, life, width, noise, a, speed, startFrame, frameRate, r, g, b );
|
||||
break;
|
||||
case TE_BEAMHOSE:
|
||||
MsgDev( D_ERROR, "TE_BEAMHOSE is obsolete\n" );
|
||||
break;
|
||||
case TE_KILLBEAM:
|
||||
startEnt = MSG_ReadShort( msg );
|
||||
|
|
|
@ -74,7 +74,7 @@ void CL_RunLightStyles( void )
|
|||
tr.lightstylevalue[i] = ls->map[0] * 22 * scale;
|
||||
continue;
|
||||
}
|
||||
else if( !ls->interp || !cl_lightstyle_lerping->value )
|
||||
else if( !ls->interp || !CVAR_TO_BOOL( cl_lightstyle_lerping ))
|
||||
{
|
||||
tr.lightstylevalue[i] = ls->map[flight%ls->length] * 22 * scale;
|
||||
continue;
|
||||
|
|
|
@ -273,7 +273,6 @@ void GL_BuildPolygonFromSurface( model_t *mod, msurface_t *fa )
|
|||
medge_t *pedges, *r_pedge;
|
||||
mextrasurf_t *info = fa->info;
|
||||
float sample_size;
|
||||
int vertpage;
|
||||
texture_t *tex;
|
||||
gl_texture_t *glt;
|
||||
float *vec;
|
||||
|
@ -299,7 +298,6 @@ void GL_BuildPolygonFromSurface( model_t *mod, msurface_t *fa )
|
|||
// reconstruct the polygon
|
||||
pedges = mod->edges;
|
||||
lnumverts = fa->numedges;
|
||||
vertpage = 0;
|
||||
|
||||
// detach if already created, reconstruct again
|
||||
poly = fa->polys;
|
||||
|
@ -341,13 +339,13 @@ void GL_BuildPolygonFromSurface( model_t *mod, msurface_t *fa )
|
|||
s = DotProduct( vec, info->lmvecs[0] ) + info->lmvecs[0][3];
|
||||
s -= info->lightmapmins[0];
|
||||
s += fa->light_s * sample_size;
|
||||
s += sample_size / 2.0;
|
||||
s += sample_size * 0.5f;
|
||||
s /= BLOCK_SIZE * sample_size; //fa->texinfo->texture->width;
|
||||
|
||||
t = DotProduct( vec, info->lmvecs[1] ) + info->lmvecs[1][3];
|
||||
t -= info->lightmapmins[1];
|
||||
t += fa->light_t * sample_size;
|
||||
t += sample_size / 2.0;
|
||||
t += sample_size * 0.5f;
|
||||
t /= BLOCK_SIZE * sample_size; //fa->texinfo->texture->height;
|
||||
|
||||
poly->verts[i][5] = s;
|
||||
|
@ -703,9 +701,9 @@ static void R_BuildLightMap( msurface_t *surf, byte *dest, int stride, qboolean
|
|||
{
|
||||
for( s = 0; s < smax; s++ )
|
||||
{
|
||||
dest[0] = min((bl[0] >> 7), 255 );
|
||||
dest[1] = min((bl[1] >> 7), 255 );
|
||||
dest[2] = min((bl[2] >> 7), 255 );
|
||||
dest[0] = Q_min((bl[0] >> 7), 255 );
|
||||
dest[1] = Q_min((bl[1] >> 7), 255 );
|
||||
dest[2] = Q_min((bl[2] >> 7), 255 );
|
||||
dest[3] = 255;
|
||||
|
||||
bl += 3;
|
||||
|
@ -824,7 +822,7 @@ void R_BlendLightmaps( void )
|
|||
msurface_t *surf, *newsurf = NULL;
|
||||
int i;
|
||||
|
||||
if( r_fullbright->value || !cl.worldmodel->lightdata )
|
||||
if( CVAR_TO_BOOL( r_fullbright ) || !cl.worldmodel->lightdata )
|
||||
return;
|
||||
|
||||
if( RI.currententity )
|
||||
|
@ -845,7 +843,7 @@ void R_BlendLightmaps( void )
|
|||
|
||||
GL_SetupFogColorForSurfaces ();
|
||||
|
||||
if( !r_lightmap->value )
|
||||
if( !CVAR_TO_BOOL( r_lightmap ))
|
||||
pglEnable( GL_BLEND );
|
||||
else pglDisable( GL_BLEND );
|
||||
|
||||
|
@ -872,7 +870,7 @@ void R_BlendLightmaps( void )
|
|||
}
|
||||
|
||||
// render dynamic lightmaps
|
||||
if( r_dynamic->value )
|
||||
if( CVAR_TO_BOOL( r_dynamic ))
|
||||
{
|
||||
LM_InitBlock();
|
||||
|
||||
|
@ -1082,7 +1080,7 @@ void R_RenderBrushPoly( msurface_t *fa, int cull_type )
|
|||
draw_fullbrights = true;
|
||||
}
|
||||
|
||||
if( r_detailtextures->value )
|
||||
if( CVAR_TO_BOOL( r_detailtextures ))
|
||||
{
|
||||
if( pglIsEnabled( GL_FOG ))
|
||||
{
|
||||
|
@ -1125,7 +1123,7 @@ void R_RenderBrushPoly( msurface_t *fa, int cull_type )
|
|||
DrawSurfaceDecals( fa, true, (cull_type == CULL_BACKSIDE));
|
||||
}
|
||||
|
||||
if( fa->flags & SURF_DRAWTILED )
|
||||
if( FBitSet( fa->flags, SURF_DRAWTILED ))
|
||||
return; // no lightmaps anyway
|
||||
|
||||
// check for lightmap modification
|
||||
|
@ -1543,7 +1541,7 @@ void R_DrawBrushModel( cl_entity_t *e )
|
|||
}
|
||||
|
||||
// sort faces if needs
|
||||
if( !FBitSet( clmodel->flags, MODEL_LIQUID ) && e->curstate.rendermode == kRenderTransTexture && !gl_nosort->value )
|
||||
if( !FBitSet( clmodel->flags, MODEL_LIQUID ) && e->curstate.rendermode == kRenderTransTexture && !CVAR_TO_BOOL( gl_nosort ))
|
||||
qsort( world.draw_surfaces, num_sorted, sizeof( sortedface_t ), R_SurfaceCompare );
|
||||
|
||||
// draw sorted translucent surfaces
|
||||
|
|
|
@ -493,7 +493,7 @@ mspriteframe_t *R_GetSpriteFrame( const model_t *pModel, int frame, float yaw )
|
|||
else if( frame >= psprite->numframes )
|
||||
{
|
||||
if( frame > psprite->numframes )
|
||||
MsgDev( D_WARN, "R_GetSpriteFrame: no such frame %d (%s)\n", frame, pModel->name );
|
||||
Con_Reportf( S_WARN "R_GetSpriteFrame: no such frame %d (%s)\n", frame, pModel->name );
|
||||
frame = psprite->numframes - 1;
|
||||
}
|
||||
|
||||
|
@ -561,7 +561,7 @@ float R_GetSpriteFrameInterpolant( cl_entity_t *ent, mspriteframe_t **oldframe,
|
|||
}
|
||||
else if( frame >= psprite->numframes )
|
||||
{
|
||||
MsgDev( D_WARN, "R_GetSpriteFrameInterpolant: no such frame %d (%s)\n", frame, ent->model->name );
|
||||
Con_Reportf( S_WARN "R_GetSpriteFrameInterpolant: no such frame %d (%s)\n", frame, ent->model->name );
|
||||
frame = psprite->numframes - 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -672,7 +672,7 @@ void R_InitSkyClouds( mip_t *mt, texture_t *tx, qboolean custom_palette )
|
|||
// make sure what sky image is valid
|
||||
if( !r_sky || !r_sky->palette || r_sky->type != PF_INDEXED_32 || r_sky->height == 0 )
|
||||
{
|
||||
MsgDev( D_ERROR, "R_InitSky: unable to load sky texture %s\n", tx->name );
|
||||
Con_Reportf( S_ERROR "R_InitSky: unable to load sky texture %s\n", tx->name );
|
||||
if( r_sky ) FS_FreeImage( r_sky );
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -478,7 +478,7 @@ void VOX_LoadSound( channel_t *pchan, const char *pszin )
|
|||
|
||||
if( Q_strlen( psz ) > sizeof( buffer ) - 1 )
|
||||
{
|
||||
MsgDev( D_ERROR, "VOX_LoadSound: sentence is too long %s\n", psz );
|
||||
Con_Printf( S_ERROR "VOX_LoadSound: sentence is too long %s\n", psz );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -545,7 +545,7 @@ void VOX_ParseLineCommands( char *pSentenceData, int sentenceIndex )
|
|||
length = pNext - pSentenceData;
|
||||
if( tempBufferPos + length > sizeof( tempBuffer ))
|
||||
{
|
||||
MsgDev( D_ERROR, "sentence too long!\n" );
|
||||
Con_Printf( S_ERROR "sentence too long!\n" );
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ void VGUI_DrawShutdown( void )
|
|||
|
||||
for( i = 1; i < g_textureId; i++ )
|
||||
{
|
||||
GL_FreeImage( va( "*vgui%i", i ));
|
||||
GL_FreeTexture( g_textures[i] );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -90,6 +90,7 @@ protected:
|
|||
int _drawTextColor[4];
|
||||
int _translateX, _translateY;
|
||||
int _currentTexture;
|
||||
Panel *currentPanel;
|
||||
};
|
||||
|
||||
// initialize VGUI::App as external (part of engine)
|
||||
|
|
|
@ -75,6 +75,7 @@ void CEngineSurface :: SetupPaintState( const PaintStack *paintState )
|
|||
_translateX = paintState->iTranslateX;
|
||||
_translateY = paintState->iTranslateY;
|
||||
SetScissorRect( paintState->iScissorLeft, paintState->iScissorTop, paintState->iScissorRight, paintState->iScissorBottom );
|
||||
currentPanel = paintState->m_pPanel;
|
||||
}
|
||||
|
||||
void CEngineSurface :: InitVertex( vpoint_t &vertex, int x, int y, float u, float v )
|
||||
|
@ -196,11 +197,7 @@ void CEngineSurface :: drawSetTextFont( Font *font )
|
|||
if( y + tall + 1 > FONT_SIZE )
|
||||
{
|
||||
if( !staticFontInfo->bindIndex[currentPage] )
|
||||
{
|
||||
int bindIndex = createNewTextureID();
|
||||
staticFontInfo->bindIndex[currentPage] = bindIndex;
|
||||
}
|
||||
|
||||
staticFontInfo->bindIndex[currentPage] = createNewTextureID();
|
||||
drawSetTextureRGBA( staticFontInfo->bindIndex[currentPage], staticRGBA, FONT_SIZE, FONT_SIZE );
|
||||
currentPage++;
|
||||
|
||||
|
@ -223,11 +220,7 @@ void CEngineSurface :: drawSetTextFont( Font *font )
|
|||
if( currentPage != FONT_PAGES )
|
||||
{
|
||||
if( !staticFontInfo->bindIndex[currentPage] )
|
||||
{
|
||||
int bindIndex = createNewTextureID();
|
||||
staticFontInfo->bindIndex[currentPage] = bindIndex;
|
||||
}
|
||||
|
||||
staticFontInfo->bindIndex[currentPage] = createNewTextureID();
|
||||
drawSetTextureRGBA( staticFontInfo->bindIndex[currentPage], staticRGBA, FONT_SIZE, FONT_SIZE );
|
||||
}
|
||||
staticFontInfo->pageCount = currentPage + 1;
|
||||
|
|
|
@ -266,16 +266,27 @@ const char *Key_GetBinding( int keynum )
|
|||
Key_GetKey
|
||||
===================
|
||||
*/
|
||||
int Key_GetKey( const char *binding )
|
||||
int Key_GetKey( const char *pBinding )
|
||||
{
|
||||
int i;
|
||||
|
||||
if( !binding ) return -1;
|
||||
if( !pBinding ) return -1;
|
||||
|
||||
for( i = 0; i < 256; i++ )
|
||||
{
|
||||
if( keys[i].binding && !Q_stricmp( binding, keys[i].binding ))
|
||||
return i;
|
||||
if( !keys[i].binding )
|
||||
continue;
|
||||
|
||||
if( *keys[i].binding == '+' )
|
||||
{
|
||||
if( !Q_strnicmp( keys[i].binding + 1, pBinding, Q_strlen( pBinding )))
|
||||
return i;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( !Q_strnicmp( keys[i].binding, pBinding, Q_strlen( pBinding )))
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
|
|
|
@ -187,7 +187,7 @@ static void PerformBaseRelocation( MEMORYMODULE *module, DWORD delta )
|
|||
*patchAddrHL += delta;
|
||||
break;
|
||||
default:
|
||||
MsgDev( D_ERROR, "PerformBaseRelocation: unknown relocation: %d\n", type );
|
||||
Con_Reportf( S_ERROR "PerformBaseRelocation: unknown relocation: %d\n", type );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -272,7 +272,7 @@ static int BuildImportTable( MEMORYMODULE *module )
|
|||
|
||||
if( handle == NULL )
|
||||
{
|
||||
MsgDev( D_ERROR, "couldn't load library %s\n", libname );
|
||||
Con_Printf( S_ERROR "couldn't load library %s\n", libname );
|
||||
result = 0;
|
||||
break;
|
||||
}
|
||||
|
@ -470,7 +470,7 @@ library_error:
|
|||
// cleanup
|
||||
if( data ) Mem_Free( data );
|
||||
MemoryFreeLibrary( result );
|
||||
MsgDev( D_ERROR, "LoadLibrary: %s\n", errorstring );
|
||||
Con_Printf( S_ERROR "LoadLibrary: %s\n", errorstring );
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
@ -829,10 +829,10 @@ void COM_FreeLibrary( void *hInstance )
|
|||
if( host.status == HOST_CRASHED )
|
||||
{
|
||||
// we need to hold down all modules, while MSVC can find error
|
||||
MsgDev( D_NOTE, "Sys_FreeLibrary: hold %s for debugging\n", hInst->dllName );
|
||||
Con_Reportf( "Sys_FreeLibrary: hold %s for debugging\n", hInst->dllName );
|
||||
return;
|
||||
}
|
||||
else MsgDev( D_NOTE, "Sys_FreeLibrary: Unloading %s\n", hInst->dllName );
|
||||
else Con_Reportf( "Sys_FreeLibrary: Unloading %s\n", hInst->dllName );
|
||||
|
||||
if( hInst->custom_loader )
|
||||
MemoryFreeLibrary( hInst->hInstance );
|
||||
|
|
|
@ -2171,7 +2171,7 @@ static void Mod_LoadSurfaces( dbspmodel_t *bmod )
|
|||
|
||||
if(( in->firstedge + in->numedges ) > loadmodel->numsurfedges )
|
||||
{
|
||||
MsgDev( D_ERROR, "bad surface %i from %i\n", i, bmod->numsurfaces );
|
||||
Con_Reportf( S_ERROR "bad surface %i from %i\n", i, bmod->numsurfaces );
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -2189,15 +2189,15 @@ static void Mod_LoadSurfaces( dbspmodel_t *bmod )
|
|||
tex = out->texinfo->texture;
|
||||
|
||||
if( !Q_strncmp( tex->name, "sky", 3 ))
|
||||
SetBits( out->flags, SURF_DRAWTILED|SURF_DRAWSKY );
|
||||
SetBits( out->flags, SURF_DRAWSKY );
|
||||
|
||||
if(( tex->name[0] == '*' && Q_stricmp( tex->name, "*default" )) || tex->name[0] == '!' )
|
||||
SetBits( out->flags, SURF_DRAWTURB|SURF_DRAWTILED );
|
||||
SetBits( out->flags, SURF_DRAWTURB );
|
||||
|
||||
if( !CL_IsQuakeCompatible( ))
|
||||
{
|
||||
if( !Q_strncmp( tex->name, "water", 5 ) || !Q_strnicmp( tex->name, "laser", 5 ))
|
||||
SetBits( out->flags, SURF_DRAWTURB|SURF_DRAWTILED );
|
||||
SetBits( out->flags, SURF_DRAWTURB );
|
||||
}
|
||||
|
||||
if( !Q_strncmp( tex->name, "scroll", 6 ))
|
||||
|
@ -2259,10 +2259,10 @@ static void Mod_LoadSurfaces( dbspmodel_t *bmod )
|
|||
if( samples == 1 || samples == 3 )
|
||||
{
|
||||
bmod->lightmap_samples = (int)samples;
|
||||
MsgDev( D_REPORT, "lighting: %s\n", (bmod->lightmap_samples == 1) ? "monochrome" : "colored" );
|
||||
Con_Reportf( "lighting: %s\n", (bmod->lightmap_samples == 1) ? "monochrome" : "colored" );
|
||||
bmod->lightmap_samples = Q_max( bmod->lightmap_samples, 1 ); // avoid division by zero
|
||||
}
|
||||
else MsgDev( D_WARN, "lighting invalid samplecount: %g, defaulting to %i\n", samples, bmod->lightmap_samples );
|
||||
else Con_DPrintf( S_WARN "lighting invalid samplecount: %g, defaulting to %i\n", samples, bmod->lightmap_samples );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -783,7 +783,7 @@ studiohdr_t *R_StudioLoadHeader( model_t *mod, const void *buffer )
|
|||
|
||||
if( i != STUDIO_VERSION )
|
||||
{
|
||||
MsgDev( D_ERROR, "%s has wrong version number (%i should be %i)\n", mod->name, i, STUDIO_VERSION );
|
||||
Con_Printf( S_ERROR "%s has wrong version number (%i should be %i)\n", mod->name, i, STUDIO_VERSION );
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -818,7 +818,7 @@ void Mod_LoadStudioModel( model_t *mod, const void *buffer, qboolean *loaded )
|
|||
|
||||
if( !thdr )
|
||||
{
|
||||
MsgDev( D_WARN, "Mod_LoadStudioModel: %s missing textures file\n", mod->name );
|
||||
Con_Printf( S_WARN "Mod_LoadStudioModel: %s missing textures file\n", mod->name );
|
||||
if( buffer2 ) Mem_Free( buffer2 );
|
||||
}
|
||||
else
|
||||
|
@ -933,7 +933,7 @@ void Mod_InitStudioAPI( void )
|
|||
pBlendIface = (STUDIOAPI)COM_GetProcAddress( svgame.hInstance, "Server_GetBlendingInterface" );
|
||||
if( pBlendIface && pBlendIface( SV_BLENDING_INTERFACE_VERSION, &pBlendAPI, &gStudioAPI, &studio_transform, &studio_bones ))
|
||||
{
|
||||
MsgDev( D_REPORT, "SV_LoadProgs: ^2initailized Server Blending interface ^7ver. %i\n", SV_BLENDING_INTERFACE_VERSION );
|
||||
Con_Reportf( "SV_LoadProgs: ^2initailized Server Blending interface ^7ver. %i\n", SV_BLENDING_INTERFACE_VERSION );
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -705,7 +705,7 @@ void Netchan_CheckForCompletion( netchan_t *chan, int stream, int intotalbuffers
|
|||
{
|
||||
if( chan->sock == NS_CLIENT )
|
||||
{
|
||||
MsgDev( D_ERROR, "Lost/dropped fragment would cause stall, retrying connection\n" );
|
||||
Con_DPrintf( S_ERROR "Lost/dropped fragment would cause stall, retrying connection\n" );
|
||||
Cbuf_AddText( "reconnect\n" );
|
||||
}
|
||||
}
|
||||
|
@ -714,10 +714,7 @@ void Netchan_CheckForCompletion( netchan_t *chan, int stream, int intotalbuffers
|
|||
|
||||
// received final message
|
||||
if( c == intotalbuffers )
|
||||
{
|
||||
// MsgDev( D_NOTE, "\n%s: incoming is complete %i bytes waiting\n", ns_strings[chan->sock], size );
|
||||
chan->incomingready[stream] = true;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -312,7 +312,7 @@ void Con_CreateConsole( void )
|
|||
if( !RegisterClass( &wc ))
|
||||
{
|
||||
// print into log
|
||||
MsgDev( D_ERROR, "Can't register window class '%s'\n", SYSCONSOLE );
|
||||
Con_DPrintf( S_ERROR "Can't register window class '%s'\n", SYSCONSOLE );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -329,7 +329,7 @@ void Con_CreateConsole( void )
|
|||
s_wcd.hWnd = CreateWindowEx( WS_EX_DLGMODALFRAME, SYSCONSOLE, s_wcd.title, DEDSTYLE, ( swidth - 600 ) / 2, ( sheight - 450 ) / 2 , rect.right - rect.left + 1, rect.bottom - rect.top + 1, NULL, NULL, host.hInst, NULL );
|
||||
if( s_wcd.hWnd == NULL )
|
||||
{
|
||||
MsgDev( D_ERROR, "Can't create window '%s'\n", s_wcd.title );
|
||||
Con_DPrintf( S_ERROR "Can't create window '%s'\n", s_wcd.title );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -399,7 +399,7 @@ destroy win32 console
|
|||
void Con_DestroyConsole( void )
|
||||
{
|
||||
// last text message into console or log
|
||||
MsgDev( D_NOTE, "Sys_FreeLibrary: Unloading xash.dll\n" );
|
||||
Con_Reportf( "Sys_FreeLibrary: Unloading xash.dll\n" );
|
||||
|
||||
Sys_CloseLog();
|
||||
|
||||
|
@ -486,7 +486,12 @@ void Sys_InitLog( void )
|
|||
if( s_wcd.log_active )
|
||||
{
|
||||
s_wcd.logfile = fopen( s_wcd.log_path, mode );
|
||||
if( !s_wcd.logfile ) MsgDev( D_ERROR, "Sys_InitLog: can't create log file %s\n", s_wcd.log_path );
|
||||
|
||||
if( !s_wcd.logfile )
|
||||
{
|
||||
Con_Printf( S_ERROR "Sys_InitLog: can't create log file %s\n", s_wcd.log_path );
|
||||
return;
|
||||
}
|
||||
|
||||
fprintf( s_wcd.logfile, "=================================================================================\n" );
|
||||
fprintf( s_wcd.logfile, "\t%s (build %i) started at %s\n", s_wcd.title, Q_buildnum(), Q_timestamp( TIME_FULL ));
|
||||
|
|
|
@ -98,7 +98,7 @@ void Sys_SetClipboardData( const byte *buffer, size_t size )
|
|||
|
||||
if( SetClipboardData( CF_DIB, hResult ) == NULL )
|
||||
{
|
||||
MsgDev( D_ERROR, "unable to write screenshot\n" );
|
||||
Con_Printf( S_ERROR "unable to write screenshot\n" );
|
||||
GlobalFree( hResult );
|
||||
}
|
||||
CloseClipboard();
|
||||
|
@ -371,7 +371,7 @@ qboolean Sys_LoadLibrary( dll_info_t *dll )
|
|||
if( !dll->name || !*dll->name )
|
||||
return false; // nothing to load
|
||||
|
||||
MsgDev( D_NOTE, "Sys_LoadLibrary: Loading %s", dll->name );
|
||||
Con_Reportf( "Sys_LoadLibrary: Loading %s", dll->name );
|
||||
|
||||
if( dll->fcts )
|
||||
{
|
||||
|
@ -398,14 +398,14 @@ qboolean Sys_LoadLibrary( dll_info_t *dll )
|
|||
goto error;
|
||||
}
|
||||
}
|
||||
MsgDev( D_NOTE, " - ok\n" );
|
||||
Con_Reportf( " - ok\n" );
|
||||
|
||||
return true;
|
||||
error:
|
||||
MsgDev( D_NOTE, " - failed\n" );
|
||||
Con_Reportf( " - failed\n" );
|
||||
Sys_FreeLibrary( dll ); // trying to free
|
||||
if( dll->crash ) Sys_Error( errorstring );
|
||||
else MsgDev( D_ERROR, errorstring );
|
||||
else Con_DPrintf( "%s%s", S_ERROR, errorstring );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -427,10 +427,10 @@ qboolean Sys_FreeLibrary( dll_info_t *dll )
|
|||
if( host.status == HOST_CRASHED )
|
||||
{
|
||||
// we need to hold down all modules, while MSVC can find error
|
||||
MsgDev( D_NOTE, "Sys_FreeLibrary: hold %s for debugging\n", dll->name );
|
||||
Con_Reportf( "Sys_FreeLibrary: hold %s for debugging\n", dll->name );
|
||||
return false;
|
||||
}
|
||||
else MsgDev( D_NOTE, "Sys_FreeLibrary: Unloading %s\n", dll->name );
|
||||
else Con_Reportf( "Sys_FreeLibrary: Unloading %s\n", dll->name );
|
||||
|
||||
FreeLibrary( dll->link );
|
||||
dll->link = NULL;
|
||||
|
|
|
@ -158,7 +158,6 @@ void World_TransformAABB( matrix4x4 transform, const vec3_t mins, const vec3_t m
|
|||
{
|
||||
if( outmins[i] > outmaxs[i] )
|
||||
{
|
||||
MsgDev( D_ERROR, "World_TransformAABB: backwards mins/maxs\n" );
|
||||
VectorClear( outmins );
|
||||
VectorClear( outmaxs );
|
||||
return;
|
||||
|
|
|
@ -1241,10 +1241,11 @@ void SV_PutClientInServer( sv_client_t *cl )
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef HACKS_RELATED_HLMODS
|
||||
// enable dev-mode to prevent crash cheat-protecting from Invasion mod
|
||||
if( FBitSet( ent->v.flags, FL_GODMODE|FL_NOTARGET ) && !Q_stricmp( GI->gamefolder, "invasion" ))
|
||||
SV_ExecuteClientCommand( cl, "test\n" );
|
||||
|
||||
#endif
|
||||
// refresh the userinfo and movevars
|
||||
// NOTE: because movevars can be changed during the connection process
|
||||
SetBits( cl->flags, FCL_RESEND_USERINFO|FCL_RESEND_MOVEVARS );
|
||||
|
|
|
@ -313,7 +313,7 @@ void SV_MoveToOnHandList( sv_client_t *cl, resource_t *pResource )
|
|||
{
|
||||
if( !pResource )
|
||||
{
|
||||
MsgDev( D_REPORT, "Null resource passed to SV_MoveToOnHandList\n" );
|
||||
Con_Reportf( "Null resource passed to SV_MoveToOnHandList\n" );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -325,7 +325,7 @@ void SV_AddToResourceList( resource_t *pResource, resource_t *pList )
|
|||
{
|
||||
if( pResource->pPrev != NULL || pResource->pNext != NULL )
|
||||
{
|
||||
MsgDev( D_ERROR, "Resource already linked\n" );
|
||||
Con_Reportf( S_ERROR "Resource already linked\n" );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -524,7 +524,7 @@ void SV_BatchUploadRequest( sv_client_t *cl )
|
|||
}
|
||||
else
|
||||
{
|
||||
MsgDev( D_ERROR, "Non customization in upload queue!\n" );
|
||||
Con_Reportf( S_ERROR "Non customization in upload queue!\n" );
|
||||
SV_MoveToOnHandList( cl, p );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4585,7 +4585,7 @@ qboolean SV_ParseEdict( char **pfile, edict_t *ent )
|
|||
|
||||
COM_ParseVector( &pstart, origin, 3 );
|
||||
Mem_Free( pkvd[i].szValue ); // release old value, so we don't need these
|
||||
copystring( va( "%g %g %g", origin[0], origin[1], origin[2] - 16.0f ));
|
||||
pkvd[i].szValue = copystring( va( "%g %g %g", origin[0], origin[1], origin[2] - 16.0f ));
|
||||
}
|
||||
#endif
|
||||
if( !Q_strcmp( pkvd[i].szKeyName, "light" ))
|
||||
|
|
Reference in New Issue