Skip to content

Commit

Permalink
Revert big brain gamer move
Browse files Browse the repository at this point in the history
What could possibly go wrong?
Re-added the assert tags
  • Loading branch information
ToolMan2k authored Jan 5, 2024
1 parent 589f7e1 commit 532e41e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/sprite_picture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,7 @@ int Sprite_Picture::GetFrameWidth() const {
const auto& data = pic.data;

auto& bitmap = GetBitmap();
if (!bitmap) {
return 0;
}
assert(bitmap);

if (feature_spritesheet && pic.NumSpriteSheetFrames() > 1) {
return bitmap->GetWidth() / data.spritesheet_cols;
Expand All @@ -197,9 +195,7 @@ int Sprite_Picture::GetFrameHeight() const {
const auto& data = pic.data;

auto& bitmap = GetBitmap();
if (!bitmap) {
return 0;
}
assert(bitmap);

if (feature_spritesheet && pic.NumSpriteSheetFrames() > 1) {
return bitmap->GetHeight() / data.spritesheet_rows;
Expand Down

0 comments on commit 532e41e

Please sign in to comment.