fix: level rendering was broken with rectangle tilesets

This commit is contained in:
KikooDX 2021-03-27 15:49:29 +01:00
parent b88e37fadf
commit de64f2a56a
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {