Преглед изворни кода

Endlosschleife beim zeichnen behoben

Kolja Strohm пре 5 година
родитељ
комит
fb39b745f7
1 измењених фајлова са 2 додато и 2 уклоњено
  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 );
                 }
             }