commit
b8fbc79306
@ -587,7 +587,7 @@ void Attachment::updateGraphics(float dt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_plugin)
|
if (m_plugin)
|
||||||
m_plugin->updateGrahpics(dt);
|
m_plugin->updateGraphics(dt);
|
||||||
|
|
||||||
if (m_type != ATTACH_NOTHING)
|
if (m_type != ATTACH_NOTHING)
|
||||||
{
|
{
|
||||||
|
@ -57,7 +57,7 @@ public:
|
|||||||
enum AttachmentType
|
enum AttachmentType
|
||||||
{
|
{
|
||||||
ATTACH_FIRST = 0,
|
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
|
// 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).
|
// must be last, since a bomb will not be given in battle mode).
|
||||||
ATTACH_PARACHUTE = 0,
|
ATTACH_PARACHUTE = 0,
|
||||||
|
@ -52,7 +52,7 @@ public:
|
|||||||
|
|
||||||
virtual ~AttachmentPlugin() {}
|
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
|
/** Updates a plugin. This is called once each time frame. If the
|
||||||
|
@ -103,7 +103,7 @@ Swatter::~Swatter()
|
|||||||
} // ~Swatter
|
} // ~Swatter
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
void Swatter::updateGrahpics(float dt)
|
void Swatter::updateGraphics(float dt)
|
||||||
{
|
{
|
||||||
#ifndef SERVER_ONLY
|
#ifndef SERVER_ONLY
|
||||||
if (m_bomb_remaining != -1)
|
if (m_bomb_remaining != -1)
|
||||||
@ -221,7 +221,7 @@ void Swatter::updateGrahpics(float dt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} // updateGrahpics
|
} // updateGraphics
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/** Updates an armed swatter: it checks for any karts that are close enough
|
/** Updates an armed swatter: it checks for any karts that are close enough
|
||||||
|
@ -90,7 +90,7 @@ public:
|
|||||||
Swatter(AbstractKart *kart, int16_t bomb_ticks, int ticks,
|
Swatter(AbstractKart *kart, int16_t bomb_ticks, int ticks,
|
||||||
Attachment* attachment);
|
Attachment* attachment);
|
||||||
virtual ~Swatter();
|
virtual ~Swatter();
|
||||||
void updateGrahpics(float dt) OVERRIDE;
|
void updateGraphics(float dt) OVERRIDE;
|
||||||
bool updateAndTestFinished(int ticks) OVERRIDE;
|
bool updateAndTestFinished(int ticks) OVERRIDE;
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
@ -3279,7 +3279,7 @@ void Kart::updateGraphics(float dt)
|
|||||||
else
|
else
|
||||||
m_stars_effect->update(dt);
|
m_stars_effect->update(dt);
|
||||||
|
|
||||||
// Upate particle effects (creation rate, and emitter size
|
// Update particle effects (creation rate, and emitter size
|
||||||
// depending on speed)
|
// depending on speed)
|
||||||
m_kart_gfx->update(dt);
|
m_kart_gfx->update(dt);
|
||||||
if (m_collision_particles) m_collision_particles->update(dt);
|
if (m_collision_particles) m_collision_particles->update(dt);
|
||||||
|
Loading…
Reference in New Issue
Block a user