diff options
-rw-r--r-- | src/net/ea/npcrecv.cpp | 2 | ||||
-rw-r--r-- | src/progs/dyecmd/gui/viewport.h | 2 | ||||
-rw-r--r-- | src/progs/manaplus/gui/viewport.h | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/net/ea/npcrecv.cpp b/src/net/ea/npcrecv.cpp index 098f07e79..6129349bd 100644 --- a/src/net/ea/npcrecv.cpp +++ b/src/net/ea/npcrecv.cpp @@ -133,7 +133,7 @@ void NpcRecv::processNpcCommand(Net::MessageIn &msg) case 1: if (viewport != nullptr) - viewport->moveCameraToActor(npcId); + viewport->moveCameraToActor(npcId, 0, 0); break; case 2: diff --git a/src/progs/dyecmd/gui/viewport.h b/src/progs/dyecmd/gui/viewport.h index 4b69a607c..756715afb 100644 --- a/src/progs/dyecmd/gui/viewport.h +++ b/src/progs/dyecmd/gui/viewport.h @@ -165,7 +165,7 @@ class Viewport final : public WindowContainer, */ void drawPath(Graphics *const graphics, const Path &path, - const Color &color = Color(255, 0, 0)) + const Color &color) const A_NONNULL(2); bool leftMouseAction(); diff --git a/src/progs/manaplus/gui/viewport.h b/src/progs/manaplus/gui/viewport.h index 62982fc89..ea12776c1 100644 --- a/src/progs/manaplus/gui/viewport.h +++ b/src/progs/manaplus/gui/viewport.h @@ -151,8 +151,8 @@ class Viewport final : public WindowContainer, { mCameraRelativeY = n; updateMidVars(); } void moveCameraToActor(const BeingId actorId, - const int x = 0, - const int y = 0); + const int x, + const int y); void moveCameraToPosition(const int x, const int y); @@ -191,7 +191,7 @@ class Viewport final : public WindowContainer, */ void drawPath(Graphics *const graphics, const Path &path, - const Color &color = Color(255, 0, 0)) + const Color &color) const A_NONNULL(2); bool leftMouseAction(); |