|
@@ -169,7 +169,7 @@ void Geschoss::tick( double zeit )
|
|
{
|
|
{
|
|
nextImage += 0.075;
|
|
nextImage += 0.075;
|
|
currentImage++;
|
|
currentImage++;
|
|
- if( resources->zResource( R_FEUERBALL_GESCHOSS, 0 )->getImageCount() >= currentImage )
|
|
|
|
|
|
+ if( currentImage >= resources->zResource( R_FEUERBALL_GESCHOSS, 0 )->getImageCount() )
|
|
currentImage = 0;
|
|
currentImage = 0;
|
|
textur->release();
|
|
textur->release();
|
|
textur = resources->zResource( R_FEUERBALL_GESCHOSS, 0 )->getImage( currentImage );
|
|
textur = resources->zResource( R_FEUERBALL_GESCHOSS, 0 )->getImage( currentImage );
|
|
@@ -182,7 +182,7 @@ void Geschoss::tick( double zeit )
|
|
{
|
|
{
|
|
nextImage += 0.075;
|
|
nextImage += 0.075;
|
|
currentImage++;
|
|
currentImage++;
|
|
- if( resources->zResource( R_DRACHENAUGE_GESCHOSS, 0 )->getImageCount() >= currentImage )
|
|
|
|
|
|
+ if( currentImage >= resources->zResource( R_DRACHENAUGE_GESCHOSS, 0 )->getImageCount() )
|
|
currentImage = 0;
|
|
currentImage = 0;
|
|
textur->release();
|
|
textur->release();
|
|
textur = resources->zResource( R_DRACHENAUGE_GESCHOSS, 0 )->getImage( currentImage );
|
|
textur = resources->zResource( R_DRACHENAUGE_GESCHOSS, 0 )->getImage( currentImage );
|