From 25926b0aec2d8a7c0fe6d382d14ec72bee15180a Mon Sep 17 00:00:00 2001 From: Donough Liu Date: Sat, 22 Jun 2019 09:37:24 +0800 Subject: [PATCH 1/2] Typo fix --- src/items/attachment.hpp | 2 +- src/karts/kart.cpp | 2 +- src/states_screens/dialogs/confirm_resolution_dialog.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/items/attachment.hpp b/src/items/attachment.hpp index 9e5c4fed5..376902fac 100644 --- a/src/items/attachment.hpp +++ b/src/items/attachment.hpp @@ -57,7 +57,7 @@ public: enum AttachmentType { ATTACH_FIRST = 0, - // It is importabt that parachute, bomb and anvil stay in this order, + // It is important that parachute, bomb and anvil stay in this order, // since the attachment type is mapped to a random integer (and bomb // must be last, since a bomb will not be given in battle mode). ATTACH_PARACHUTE = 0, diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index 4614d49cf..b7a33e16c 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -3279,7 +3279,7 @@ void Kart::updateGraphics(float dt) else m_stars_effect->update(dt); - // Upate particle effects (creation rate, and emitter size + // Update particle effects (creation rate, and emitter size // depending on speed) m_kart_gfx->update(dt); if (m_collision_particles) m_collision_particles->update(dt); diff --git a/src/states_screens/dialogs/confirm_resolution_dialog.hpp b/src/states_screens/dialogs/confirm_resolution_dialog.hpp index f7374d62e..1eb357567 100644 --- a/src/states_screens/dialogs/confirm_resolution_dialog.hpp +++ b/src/states_screens/dialogs/confirm_resolution_dialog.hpp @@ -23,7 +23,7 @@ #include "utils/cpp2011.hpp" /** - * \brief Dialog shown after a resolution switch sot he user may confirm if + * \brief Dialog shown after a resolution switch so the user may confirm if * the resolution works. * \ingroup states_screens */ From 1ce37e3bea14ab0ebe444e3cab4ff630578a9821 Mon Sep 17 00:00:00 2001 From: Donough Liu Date: Sat, 22 Jun 2019 09:51:32 +0800 Subject: [PATCH 2/2] Function name typo fix --- src/items/attachment.cpp | 2 +- src/items/attachment_plugin.hpp | 2 +- src/items/swatter.cpp | 4 ++-- src/items/swatter.hpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/items/attachment.cpp b/src/items/attachment.cpp index 744958a43..a1c312fc1 100644 --- a/src/items/attachment.cpp +++ b/src/items/attachment.cpp @@ -587,7 +587,7 @@ void Attachment::updateGraphics(float dt) } if (m_plugin) - m_plugin->updateGrahpics(dt); + m_plugin->updateGraphics(dt); if (m_type != ATTACH_NOTHING) { diff --git a/src/items/attachment_plugin.hpp b/src/items/attachment_plugin.hpp index 84ce19415..c9f1e0b1c 100644 --- a/src/items/attachment_plugin.hpp +++ b/src/items/attachment_plugin.hpp @@ -52,7 +52,7 @@ public: virtual ~AttachmentPlugin() {} - virtual void updateGrahpics(float dt) = 0; + virtual void updateGraphics(float dt) = 0; // ------------------------------------------------------------------------ /** Updates a plugin. This is called once each time frame. If the diff --git a/src/items/swatter.cpp b/src/items/swatter.cpp index bddfc4935..97f6d1917 100644 --- a/src/items/swatter.cpp +++ b/src/items/swatter.cpp @@ -103,7 +103,7 @@ Swatter::~Swatter() } // ~Swatter // ---------------------------------------------------------------------------- -void Swatter::updateGrahpics(float dt) +void Swatter::updateGraphics(float dt) { #ifndef SERVER_ONLY if (m_bomb_remaining != -1) @@ -221,7 +221,7 @@ void Swatter::updateGrahpics(float dt) } } #endif -} // updateGrahpics +} // updateGraphics // ---------------------------------------------------------------------------- /** Updates an armed swatter: it checks for any karts that are close enough diff --git a/src/items/swatter.hpp b/src/items/swatter.hpp index a7b4d2ba0..f3c11cfce 100644 --- a/src/items/swatter.hpp +++ b/src/items/swatter.hpp @@ -90,7 +90,7 @@ public: Swatter(AbstractKart *kart, int16_t bomb_ticks, int ticks, Attachment* attachment); virtual ~Swatter(); - void updateGrahpics(float dt) OVERRIDE; + void updateGraphics(float dt) OVERRIDE; bool updateAndTestFinished(int ticks) OVERRIDE; // ------------------------------------------------------------------------