mirror of
https://github.com/ioquake/jedi-outcast.git
synced 2025-02-24 12:43:01 +00:00
add some casts so gcc can pick an overloaded abs/max/min func
This commit is contained in:
parent
16ff91d807
commit
41d7f40193
3 changed files with 5 additions and 5 deletions
|
@ -1134,7 +1134,7 @@ void CFxScheduler::PlayEffect( int id, CFxBoltInterface *obj )
|
||||||
|
|
||||||
if ( prim->mSpawnFlags & FX_EVEN_DISTRIBUTION )
|
if ( prim->mSpawnFlags & FX_EVEN_DISTRIBUTION )
|
||||||
{
|
{
|
||||||
factor = abs(prim->mSpawnDelay.GetMax() - prim->mSpawnDelay.GetMin()) / (float)count;
|
factor = abs((long)(prim->mSpawnDelay.GetMax() - prim->mSpawnDelay.GetMin())) / (float)count;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Schedule the random number of bits
|
// Schedule the random number of bits
|
||||||
|
@ -1642,7 +1642,7 @@ void CFxScheduler::PlayEffect( int id, vec3_t origin, vec3_t axis[3], const int
|
||||||
|
|
||||||
if ( prim->mSpawnFlags & FX_EVEN_DISTRIBUTION )
|
if ( prim->mSpawnFlags & FX_EVEN_DISTRIBUTION )
|
||||||
{
|
{
|
||||||
factor = abs(prim->mSpawnDelay.GetMax() - prim->mSpawnDelay.GetMin()) / (float)count;
|
factor = abs((long)(prim->mSpawnDelay.GetMax() - prim->mSpawnDelay.GetMin())) / (float)count;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Schedule the random number of bits
|
// Schedule the random number of bits
|
||||||
|
|
|
@ -1189,7 +1189,7 @@ e_status CIN_RunCinematic (int handle)
|
||||||
}
|
}
|
||||||
|
|
||||||
thisTime = Sys_Milliseconds()*com_timescale->value;
|
thisTime = Sys_Milliseconds()*com_timescale->value;
|
||||||
if (cinTable[currentHandle].shader && (abs(thisTime - cinTable[currentHandle].lastTime))>100) {
|
if (cinTable[currentHandle].shader && (abs((long)(thisTime - cinTable[currentHandle].lastTime)))>100) {
|
||||||
cinTable[currentHandle].startTime += thisTime - cinTable[currentHandle].lastTime;
|
cinTable[currentHandle].startTime += thisTime - cinTable[currentHandle].lastTime;
|
||||||
}
|
}
|
||||||
cinTable[currentHandle].tfps = ((((Sys_Milliseconds()*com_timescale->value) - cinTable[currentHandle].startTime)*cinTable[currentHandle].roqFPS)/1000);
|
cinTable[currentHandle].tfps = ((((Sys_Milliseconds()*com_timescale->value) - cinTable[currentHandle].startTime)*cinTable[currentHandle].roqFPS)/1000);
|
||||||
|
|
|
@ -741,10 +741,10 @@ usercmd_t CL_CreateCmd( void ) {
|
||||||
// draw debug graphs of turning for mouse testing
|
// draw debug graphs of turning for mouse testing
|
||||||
if ( cl_debugMove->integer ) {
|
if ( cl_debugMove->integer ) {
|
||||||
if ( cl_debugMove->integer == 1 ) {
|
if ( cl_debugMove->integer == 1 ) {
|
||||||
SCR_DebugGraph( abs(cl.viewangles[YAW] - oldAngles[YAW]), 0 );
|
SCR_DebugGraph( abs((long)(cl.viewangles[YAW] - oldAngles[YAW])), 0 );
|
||||||
}
|
}
|
||||||
if ( cl_debugMove->integer == 2 ) {
|
if ( cl_debugMove->integer == 2 ) {
|
||||||
SCR_DebugGraph( abs(cl.viewangles[PITCH] - oldAngles[PITCH]), 0 );
|
SCR_DebugGraph( abs((long)(cl.viewangles[PITCH] - oldAngles[PITCH])), 0 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue