From a9b39ed5dd548d8a0e877e3dfe0cd657b0df417e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Ho=C5=A1ek?= Date: Sat, 28 Jan 2006 19:05:53 +0000 Subject: [PATCH] * Updated the Czech translation to reflect the new year * Snow particles no longer disappear when in frame * Fixed w2l2's reference to the red potion sprite file SVN-Revision: 3040 --- data/levels/world2/level2.stl | 2 +- data/locale/cs.po | 6 +++--- src/object/particlesystem.cpp | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/data/levels/world2/level2.stl b/data/levels/world2/level2.stl index d374c06ec..a7103be50 100644 --- a/data/levels/world2/level2.stl +++ b/data/levels/world2/level2.stl @@ -203,7 +203,7 @@ (bonusblock (x 672) (y 1056) (contents "custom") (powerup - (sprite "potions/red-potion.sprite") + (sprite "images/powerups/potions/red-potion.sprite") (script "levelflip();") ) ) diff --git a/data/locale/cs.po b/data/locale/cs.po index 6973a11ee..84cb688c6 100644 --- a/data/locale/cs.po +++ b/data/locale/cs.po @@ -1,5 +1,5 @@ # Czech translations for SuperTux package -# Copyright (C) 2005 Ondrej Hosek +# Copyright (C) 2006 Ondrej Hosek # This file is distributed under the same license as the SuperTux package. # msgid "" @@ -54,11 +54,11 @@ msgstr "Zpět" #: src/title.cpp:346 msgid "" -"Copyright (c) 2005 SuperTux Devel Team\n" +"Copyright (c) 2006 SuperTux Devel Team\n" "This game comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to\n" "redistribute it under certain conditions; see the file COPYING for details.\n" msgstr "" -"Copyright (c) 2005 Tým vývojářů SuperTuxu\n" +"Copyright (c) 2006 Tým vývojářů SuperTuxu\n" "Tato hra přichází BEZ JAKÉKOLIV ZÁRUKY. Tento program je volný software, smíš jej\n" "distribuovat dle pokynů v souboru COPYING.\n" diff --git a/src/object/particlesystem.cpp b/src/object/particlesystem.cpp index de2282084..3f505e661 100644 --- a/src/object/particlesystem.cpp +++ b/src/object/particlesystem.cpp @@ -28,6 +28,7 @@ #include "lisp/writer.hpp" #include "resources.hpp" #include "main.hpp" +#include "object/camera.hpp" ParticleSystem::ParticleSystem() { @@ -122,7 +123,7 @@ void SnowParticleSystem::update(float elapsed_time) for(i = particles.begin(); i != particles.end(); ++i) { SnowParticle* particle = (SnowParticle*) *i; particle->pos.y += particle->speed * elapsed_time; - if(particle->pos.y > SCREEN_HEIGHT) { + if(particle->pos.y > SCREEN_HEIGHT + Sector::current()->camera->get_translation().y) { particle->pos.y = fmodf(particle->pos.y , virtual_height); particle->pos.x = rand() % int(virtual_width); } -- 2.11.0