diff --git a/Lab_1/Lab_1/Lab_1.cpp b/Lab_1/Lab_1/Lab_1.cpp index 8b0a543..2b9b658 100644 --- a/Lab_1/Lab_1/Lab_1.cpp +++ b/Lab_1/Lab_1/Lab_1.cpp @@ -93,7 +93,7 @@ COORD CreateNewSpritePosition(COORD spritePosition, COORD spriteSteps, HWND hWnd newSpritePosition.X = spritePosition.X + spriteSteps.X; if (newSpritePosition.X < 0) { - newSpritePosition.X = 0 + SPRITE_STEP + 90; + newSpritePosition.X = 0 + SPRITE_STEP; } else if (newSpritePosition.X + spriteSize.cx > windowSize.cx) {