Clean up dead stores
Does not change optimized code (gcc -O). Spotted by the Clang Static Analyzer.
This commit is contained in:
parent
3650587dab
commit
b8f5eaff0b
25 changed files with 66 additions and 116 deletions
|
@ -520,7 +520,6 @@ ship_bomb(struct emp_qelem *list, struct sctstr *target)
|
|||
continue;
|
||||
}
|
||||
|
||||
dam = 0;
|
||||
if (nuk_on_plane(&plp->plane) >= 0)
|
||||
hitchance = 100;
|
||||
else {
|
||||
|
@ -624,7 +623,6 @@ plane_bomb(struct emp_qelem *list, struct sctstr *target)
|
|||
continue;
|
||||
if (changed_plane_aborts(plp))
|
||||
continue;
|
||||
dam = 0;
|
||||
if (nuk_on_plane(&plp->plane) >= 0)
|
||||
hitchance = 100;
|
||||
else {
|
||||
|
@ -735,7 +733,6 @@ land_bomb(struct emp_qelem *list, struct sctstr *target)
|
|||
continue;
|
||||
}
|
||||
|
||||
dam = 0;
|
||||
if (nuk_on_plane(&plp->plane) >= 0)
|
||||
hitchance = 100;
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue