🚚 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

@ -6,14 +6,14 @@
using namespace devilution;
TEST(Dead, AddDead)
TEST(Corpses, AddCorpse)
{
AddDead({ 21, 48 }, 8, DIR_W);
EXPECT_EQ(dDead[21][48], 8 + (DIR_W << 5));
AddCorpse({ 21, 48 }, 8, DIR_W);
EXPECT_EQ(dCorpse[21][48], 8 + (DIR_W << 5));
}
TEST(Dead, AddDead_OOB)
TEST(Corpses, AddCorpse_OOB)
{
AddDead({ 21, 48 }, MaxDead + 1, DIR_W);
EXPECT_EQ(dDead[21][48], 0 + (DIR_W << 5));
AddCorpse({ 21, 48 }, MaxCorpses + 1, DIR_W);
EXPECT_EQ(dCorpse[21][48], 0 + (DIR_W << 5));
}