diff --git a/python/port/mod/turtle/turtle.cpp b/python/port/mod/turtle/turtle.cpp index c242ec475..fd1a54cbd 100644 --- a/python/port/mod/turtle/turtle.cpp +++ b/python/port/mod/turtle/turtle.cpp @@ -330,7 +330,7 @@ void Turtle::drawPaw(PawType type, PawPosition pos) { // Compute the paw offset from the turtle center float currentAngle = angles[(int) type]; - float crawlDelta = (((int)pos) - 2.0f) * crawlOffset; + float crawlDelta = ((float)((int)pos)) * crawlOffset; float pawX = pawOffset * sin(m_heading+currentAngle) + crawlDelta * sin(m_heading); float pawY = - pawOffset * cos(m_heading+currentAngle) - crawlDelta * cos(m_heading); KDCoordinate pawOffsetX = ((int)pawX) - (pawX < 0 ? 1 : 0); diff --git a/python/port/mod/turtle/turtle.h b/python/port/mod/turtle/turtle.h index e7b50fb47..c58ff5d04 100644 --- a/python/port/mod/turtle/turtle.h +++ b/python/port/mod/turtle/turtle.h @@ -91,12 +91,12 @@ private: BackLeft = 3 }; - enum class PawPosition : int { - Backwards = 0, - HalfBackwards = 1, - Normal = 2, - HalfForward = 3, - Forward = 4 + enum class PawPosition : int8_t { + Backwards = -1, + HalfBackwards = -2, + Normal = 0, + HalfForward = 1, + Forward = 2 }; class NameColorPair {