Procházet zdrojové kódy

Endlosschleife beim zeichnen behoben

Kolja Strohm před 5 roky
rodič
revize
fb39b745f7
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      StickmanWorldOnline/GameObjekt.cpp

+ 2 - 2
StickmanWorldOnline/GameObjekt.cpp

@@ -54,9 +54,9 @@ void GameObject::render( Bild &rObj )
                 rObj.alphaBildSkall( 0, 0, (int)w, (int)h, *textur );
             else
             {
-                for( int xx = 0; xx < w; x += textur->getBreite() )
+                for( int xx = 0; xx < w; xx += textur->getBreite() )
                 {
-                    for( int yy = 0; yy < h; y += textur->getHeight() )
+                    for( int yy = 0; yy < h; yy += textur->getHeight() )
                         rObj.alphaBild( xx, yy, textur->getBreite(), textur->getHeight(), *textur );
                 }
             }