🚚 Rename 'Dead' concept to 'Corpse' everywhere (#2808)
This commit is contained in:
parent
84ede906a0
commit
0d3d4c14f6
13 changed files with 54 additions and 54 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue