Reset commander damage on game reset

This commit is contained in:
Correl Roush 2023-03-21 17:33:02 -04:00
parent 15711150cc
commit 0eac844638

View file

@ -475,6 +475,7 @@ public:
M5.Display.startWrite(); M5.Display.startWrite();
for (int i = 0; i < 4; i++) { for (int i = 0; i < 4; i++) {
players[i].lifeTotal = 40; players[i].lifeTotal = 40;
for (int j = 0; j < 4; j++) players[i].commanderDamage[j] = 0;
drawPlayer(i); drawPlayer(i);
} }
M5.Display.endWrite(); M5.Display.endWrite();