Context: Fix mapspace not actually being used
parent
d34139fb4d
commit
cceece2216
|
@ -59,10 +59,10 @@ void Lth_ContextMap(Lth_Context *ctx, Lth_Window *ctrl)
|
||||||
Lth_assert(ctx != NULL);
|
Lth_assert(ctx != NULL);
|
||||||
Lth_assert(ctrl != 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;
|
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;
|
else ctx->lastmap.y = ctrl->y;
|
||||||
|
|
||||||
Lth_ContextSetup(ctx, ctrl);
|
Lth_ContextSetup(ctx, ctrl);
|
||||||
|
|
Loading…
Reference in New Issue