Removed unnecessary SCALE

This commit is contained in:
KikooDX 2020-09-23 16:10:31 +02:00
parent e6ed0ad85e
commit b0707eebe0
1 changed files with 2 additions and 2 deletions

View File

@ -41,8 +41,8 @@ void camera_init(Camera *camera, Player *player, const Level *level)
{
/* level is single screen */
/* We calculate the offset and setup the camera to center everything. */
const Vec screen_center_precise = {level->width * TILE_SIZE / (2 * SCALE),
level->height * TILE_SIZE / (2 * SCALE)};
const Vec screen_center_precise = {level->width * TILE_SIZE / 2,
level->height * TILE_SIZE / 2};
vec_cpy(&camera->min, screen_center_precise);
vec_cpy(&camera->max, screen_center_precise);
}