Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinmayMittal committed Apr 19, 2022
1 parent bfd59e2 commit 2a074f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ bool LGame::initObjs()
printf("Failed to load robber texture!\n");
return false;
}
if (!window.loadTexture(yuluTexture, "resources/yulu.png"))
if (!window.loadTexture(yuluTexture, "resources/yulu.bmp"))
{
printf("Failed to load yulu texture!\n");
return false;
Expand Down
1 change: 0 additions & 1 deletion NPC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ int NPC::render(SDL_Renderer *renderer, SDL_Rect &camera)
else SDL_SetRenderDrawColor( renderer, 0xFF, 0xFF, 0x00, 0x30 );
SDL_RenderFillRect( renderer, &fillRect );
mTexture.render(renderer, mBox.x - camera.x, mBox.y - camera.y, &NPCImages[dimension + offset]);

if(!isBusy()) mframes = (mframes + 1) % (numOfAnimationImages * animationSpeed);
return 0;
}
Expand Down

0 comments on commit 2a074f5

Please sign in to comment.