Fix Bug where you should not mark/unmark vision of Destroyed units
This commit is contained in:
parent
0316941ab3
commit
20a82a800e
1 changed files with 6 additions and 2 deletions
|
@ -1314,7 +1314,9 @@ global void CommandSharedVision(int player, int state, int opponent)
|
|||
// Do a real hardcore seen recount. First we unmark EVERYTHING.
|
||||
//
|
||||
for (i = 0; i < NumUnits; ++i) {
|
||||
MapUnmarkUnitSight(Units[i]);
|
||||
if (!Units[i]->Destroyed) {
|
||||
MapUnmarkUnitSight(Units[i]);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -1355,7 +1357,9 @@ global void CommandSharedVision(int player, int state, int opponent)
|
|||
// Do a real hardcore seen recount. Now we remark EVERYTHING
|
||||
//
|
||||
for (i = 0; i < NumUnits; ++i) {
|
||||
MapMarkUnitSight(Units[i]);
|
||||
if (!Units[i]->Destroyed) {
|
||||
MapMarkUnitSight(Units[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue