diff options
author | ANAND <ClobberXD@gmail.com> | 2019-08-04 10:23:59 +0530 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2019-08-07 19:21:14 +0200 |
commit | e788ee283fe7eb8151898916f72c2cf803255fa4 (patch) | |
tree | 29e03adb9208c5371f969dd2c12535f2fe490e72 /src/client/client.h | |
parent | e462a9a5ef46776d974203bb44e0b89e8c980b29 (diff) | |
download | minetest-e788ee283fe7eb8151898916f72c2cf803255fa4.tar.gz minetest-e788ee283fe7eb8151898916f72c2cf803255fa4.tar.bz2 minetest-e788ee283fe7eb8151898916f72c2cf803255fa4.zip |
Client::Interact: Use InteractAction enum instead of numeric constants
This replaces the magic numbers used as interaction modes both client-side and server-side, primarily for the sake of ease-of-readability.
Diffstat (limited to 'src/client/client.h')
-rw-r--r-- | src/client/client.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/client.h b/src/client/client.h index 8ee34a4bd..15a4689c1 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -232,7 +232,7 @@ public: void Send(NetworkPacket* pkt); - void interact(u8 action, const PointedThing& pointed); + void interact(InteractAction action, const PointedThing &pointed); void sendNodemetaFields(v3s16 p, const std::string &formname, const StringMap &fields); |