Fix some LGTM warnings

This commit is contained in:
Fernando Carmona Varo 2019-10-19 14:47:52 +02:00
parent 633374e78b
commit 498a0c2b30
2 changed files with 2 additions and 4 deletions

View File

@ -1791,9 +1791,7 @@ static void deh_procThing(DEHFILE *fpin, FILE* fpout, char *line)
} }
if (fpout) fprintf(fpout,"Thing %d (%s) -> line: '%s'\n", indexnum+1, if (fpout) fprintf(fpout,"Thing %d (%s) -> line: '%s'\n", indexnum+1,
((indexnum >= 0 && indexnum < NUMMOBJTYPES)? mobjinfo[indexnum].actorname, inbuffer);
mobjinfo[indexnum].actorname : "undefined"),
inbuffer);
// now process the stuff // now process the stuff
// Note that for Things we can look up the key and use its offset // Note that for Things we can look up the key and use its offset

View File

@ -801,7 +801,7 @@ void A_FireOldBFG(player_t *player, pspdef_t *psp)
th->momz = finetangent[an2>>ANGLETOFINESHIFT] * 25; th->momz = finetangent[an2>>ANGLETOFINESHIFT] * 25;
P_CheckMissileSpawn(th); P_CheckMissileSpawn(th);
} }
while ((type != MT_PLASMA2) && (type = MT_PLASMA2)); //killough: obfuscated! while ((type != MT_PLASMA2) && (type = MT_PLASMA2)); //killough: obfuscated! // lgtm[cpp/assign-where-compare-meant]
} }
// //