Files
DevilutionX/test/cursor_test.cpp
Anders Jenbo dc706e8ed5 Use HoldItem for determining if an item is held
This cleans up a bit of code and solves a few edge cases where an item
could be lost, the game be unresponsive, or miss fire an event during
lag cause of the cursor not reflecting the currently held item.
2022-04-18 11:27:07 +02:00

12 lines
182 B
C++

#include <gtest/gtest.h>
#include "cursor.h"
using namespace devilution;
TEST(Cursor, NewCursor)
{
NewCursor(CURSOR_HOURGLASS);
EXPECT_EQ(pcurs, CURSOR_HOURGLASS);
}