diff --git a/src/graphics/particle_emitter.cpp b/src/graphics/particle_emitter.cpp index da0e1df81..81011f52d 100644 --- a/src/graphics/particle_emitter.cpp +++ b/src/graphics/particle_emitter.cpp @@ -117,8 +117,10 @@ public: for (unsigned int n=0; n= HEIGHT_MAP_RESOLUTION || j >= HEIGHT_MAP_RESOLUTION) continue; if (i < 0 || j < 0) continue; @@ -141,7 +143,9 @@ public: if (m_first_time) { - curr.pos.Y = m_height_map[i][j] + (curr.pos.Y - m_height_map[i][j])*((rand()%500)/500.0f); + curr.pos.Y = m_height_map[i][j] + + (curr.pos.Y - m_height_map[i][j]) + *((rand()%500)/500.0f); } else { diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index ead3b025c..fe9e5cefa 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -1024,7 +1024,7 @@ void Kart::handleMaterialGFX() float create; if (distance < 2.0f) { - create = pk->getMaxRate(); + create = (float)pk->getMaxRate(); } else if (distance < 4.0f) {