1
0
Fork 0

Context: Fix mapspace not actually being used

master
Marrub 2016-10-18 19:40:00 -04:00
parent d34139fb4d
commit cceece2216
1 changed files with 2 additions and 2 deletions

View File

@ -59,10 +59,10 @@ void Lth_ContextMap(Lth_Context *ctx, Lth_Window *ctrl)
Lth_assert(ctx != NULL);
Lth_assert(ctrl != NULL);
if(ctrl->x == -1) ctrl->x = ctx->lastmap.x += 16;
if(ctrl->x == -1) ctrl->x = ctx->lastmap.x += ctx->mapspace.x;
else ctx->lastmap.x = ctrl->x;
if(ctrl->y == -1) ctrl->y = ctx->lastmap.y += 16;
if(ctrl->y == -1) ctrl->y = ctx->lastmap.y += ctx->mapspace.y;
else ctx->lastmap.y = ctrl->y;
Lth_ContextSetup(ctx, ctrl);