Ver Fonte

Endlosschleife beim zeichnen behoben

Kolja Strohm há 5 anos atrás
pai
commit
fb39b745f7
1 ficheiros alterados com 2 adições e 2 exclusões
  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 );
                 }
             }