mirror of https://git.sr.ht/~kikoodx/sle
fix: level rendering was broken with rectangle tilesets
This commit is contained in:
parent
b88e37fadf
commit
de64f2a56a
|
@ -28,7 +28,7 @@ void level_draw(struct Level level, struct Options options,
|
|||
const Rectangle tile_rect = {
|
||||
(int)(tile % options.tileset_width) *
|
||||
options.tile_width,
|
||||
(int)(tile / options.tileset_height) *
|
||||
(int)(tile / options.tileset_width) *
|
||||
options.tile_height,
|
||||
options.tile_width, options.tile_height};
|
||||
const Vector2 tile_pos = {
|
||||
|
|
Loading…
Reference in New Issue