more warning fixes
This commit is contained in:
@ -114,7 +114,7 @@ edict_t *FindEntityByString(edict_t *pentStart, const char *szKeyword, const cha
|
||||
#define GET_CAPTURE_AREA(x) \
|
||||
if ( mObjects.obj[x].areaflags == 0 ){\
|
||||
mObjects.obj[x].areaflags = 1;\
|
||||
while ( mObjects.obj[x].pAreaEdict = FindEntityByString(mObjects.obj[x].pAreaEdict,"target",STRING(mObjects.obj[x].pEdict->v.targetname)) )\
|
||||
while ( (mObjects.obj[x].pAreaEdict = FindEntityByString(mObjects.obj[x].pAreaEdict,"target",STRING(mObjects.obj[x].pEdict->v.targetname))) )\
|
||||
if ( strcmp( STRING(mObjects.obj[x].pAreaEdict->v.classname),"dod_capture_area" )==0){\
|
||||
mObjects.obj[x].areaflags = 2;\
|
||||
break;\
|
||||
|
@ -174,7 +174,7 @@ void PlayerPreThink_Post( edict_t *pEntity ) {
|
||||
}
|
||||
|
||||
if (pPlayer->sendScore && pPlayer->sendScore < gpGlobals->time){
|
||||
pPlayer->sendScore = 0.0f;
|
||||
pPlayer->sendScore = 0;
|
||||
MF_ExecuteForward( iFScore,pPlayer->index, pPlayer->lastScore, pPlayer->savedScore );
|
||||
}
|
||||
|
||||
|
@ -88,10 +88,10 @@ void Client_ObjScore(void* mValue)
|
||||
break;
|
||||
case 1:
|
||||
score = *(int*)mValue;
|
||||
if ( (pPlayer->lastScore = score - pPlayer->savedScore) && isModuleActive() )
|
||||
if ( (pPlayer->lastScore = score - (int)(pPlayer->savedScore)) && isModuleActive() )
|
||||
{
|
||||
pPlayer->updateScore(pPlayer->current,pPlayer->lastScore);
|
||||
pPlayer->sendScore = gpGlobals->time + 0.25f;
|
||||
pPlayer->sendScore = (int)(gpGlobals->time + 0.25f);
|
||||
}
|
||||
pPlayer->savedScore = score;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user