🚚 Rename 'Dead' concept to 'Corpse' everywhere (#2808)

This commit is contained in:
Juliano Leal Goncalves 2021-09-06 07:49:00 -03:00 committed by GitHub
commit 0d3d4c14f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 54 additions and 54 deletions

View file

@ -1792,7 +1792,7 @@ void LoadGame(bool firstflag)
}
for (int j = 0; j < MAXDUNY; j++) {
for (int i = 0; i < MAXDUNX; i++) // NOLINT(modernize-loop-convert)
dDead[i][j] = file.NextLE<int8_t>();
dCorpse[i][j] = file.NextLE<int8_t>();
}
for (int j = 0; j < MAXDUNY; j++) {
for (int i = 0; i < MAXDUNX; i++) // NOLINT(modernize-loop-convert)
@ -1987,7 +1987,7 @@ void SaveGameData()
}
for (int j = 0; j < MAXDUNY; j++) {
for (int i = 0; i < MAXDUNX; i++) // NOLINT(modernize-loop-convert)
file.WriteLE<int8_t>(dDead[i][j]);
file.WriteLE<int8_t>(dCorpse[i][j]);
}
for (int j = 0; j < MAXDUNY; j++) {
for (int i = 0; i < MAXDUNX; i++) // NOLINT(modernize-loop-convert)
@ -2045,7 +2045,7 @@ void SaveLevel()
if (leveltype != DTYPE_TOWN) {
for (int j = 0; j < MAXDUNY; j++) {
for (int i = 0; i < MAXDUNX; i++) // NOLINT(modernize-loop-convert)
file.WriteLE<int8_t>(dDead[i][j]);
file.WriteLE<int8_t>(dCorpse[i][j]);
}
}
@ -2123,7 +2123,7 @@ void LoadLevel()
if (leveltype != DTYPE_TOWN) {
for (int j = 0; j < MAXDUNY; j++) {
for (int i = 0; i < MAXDUNX; i++) // NOLINT(modernize-loop-convert)
dDead[i][j] = file.NextLE<int8_t>();
dCorpse[i][j] = file.NextLE<int8_t>();
}
SyncUniqDead();
}