summaryrefslogtreecommitdiff
path: root/src/map/clif.cpp
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-04-15 13:57:55 -0400
committergumi <git@gumi.ca>2019-04-15 13:57:55 -0400
commitb533ac13d486a15f2b96803bf2258a014575c464 (patch)
tree80abd8626fe2aff785ad9e3ce58ea8d90a860a15 /src/map/clif.cpp
parente80f96e9288e889d3e8756100a7dffd8c4791fa6 (diff)
downloadtmwa-b533ac13d486a15f2b96803bf2258a014575c464.tar.gz
tmwa-b533ac13d486a15f2b96803bf2258a014575c464.tar.bz2
tmwa-b533ac13d486a15f2b96803bf2258a014575c464.tar.xz
tmwa-b533ac13d486a15f2b96803bf2258a014575c464.zip
fix clang warnings
Diffstat (limited to 'src/map/clif.cpp')
-rw-r--r--src/map/clif.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp
index 7d5ff59..1ab6c48 100644
--- a/src/map/clif.cpp
+++ b/src/map/clif.cpp
@@ -3403,13 +3403,13 @@ void clif_sitting(Session *, dumb_ptr<map_session_data> sd)
case AutoMod::autokill:
pc_damage(nullptr, sd, sd->status.hp);
clif_displaymessage(sd->sess, "The holy messenger has given judgement."_s);
- // now fallthrough to move
+ FALLTHROUGH;
case AutoMod::automove:
{
unsigned short x0 = std::max(0, sd->bl_x - 5),
y0 = std::max(0, sd->bl_y - 5),
- x1 = std::min(sd->bl_m->xs, (short)(sd->bl_x + 5)),
- y1 = std::min(sd->bl_m->ys, (short)(sd->bl_y + 5));
+ x1 = std::min(sd->bl_m->xs, static_cast<short>(sd->bl_x + 5)),
+ y1 = std::min(sd->bl_m->ys, static_cast<short>(sd->bl_y + 5));
unsigned short x = x0,
y = y0;