Skip to content

Commit

Permalink
Engine: Fix assertion in get_floorspr_center with regard to sloped sp…
Browse files Browse the repository at this point in the history
…rites
  • Loading branch information
Hendricks266 committed Aug 27, 2023
1 parent 9e3a773 commit 904b1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/build/src/engine_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ static inline floorsprite_dims get_floorspr_dims(uspriteptr_t spr, bool sloped)
static inline vec2_t get_floorspr_center(void const *const ptr, bool sloped)
{
auto const *spr = (uspriteptr_t)ptr;
Bassert((spr->cstat & CSTAT_SPRITE_ALIGNMENT) == CSTAT_SPRITE_ALIGNMENT_FLOOR);
Bassert((spr->cstat & CSTAT_SPRITE_ALIGNMENT) == (sloped ? CSTAT_SPRITE_ALIGNMENT_SLOPE : CSTAT_SPRITE_ALIGNMENT_FLOOR));

auto const dims = get_floorspr_dims(spr, sloped);
int32_t const cosang = dims.cosang, sinang = dims.sinang;
Expand Down

0 comments on commit 904b1ce

Please sign in to comment.