mirror of
https://github.com/correl/m5paper.git
synced 2024-12-27 03:00:11 +00:00
Reset commander damage on game reset
This commit is contained in:
parent
15711150cc
commit
0eac844638
1 changed files with 1 additions and 0 deletions
|
@ -475,6 +475,7 @@ public:
|
|||
M5.Display.startWrite();
|
||||
for (int i = 0; i < 4; i++) {
|
||||
players[i].lifeTotal = 40;
|
||||
for (int j = 0; j < 4; j++) players[i].commanderDamage[j] = 0;
|
||||
drawPlayer(i);
|
||||
}
|
||||
M5.Display.endWrite();
|
||||
|
|
Loading…
Reference in a new issue