mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-10-12 02:13:06 +00:00
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.
12 lines
182 B
C++
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);
|
|
}
|