diff --git a/src/battle/jumpgate.c b/src/battle/jumpgate.c index 64c6365..8fd5ede 100644 --- a/src/battle/jumpgate.c +++ b/src/battle/jumpgate.c @@ -41,6 +41,8 @@ Entity *spawnJumpgate(void) portal = getTexture("gfx/entities/portal.png"); portalAngle = 0; + + SDL_QueryTexture(jumpgate->texture, NULL, NULL, &jumpgate->w, &jumpgate->h); return jumpgate; } diff --git a/src/battle/waypoints.c b/src/battle/waypoints.c index 70226d4..7f95402 100644 --- a/src/battle/waypoints.c +++ b/src/battle/waypoints.c @@ -45,6 +45,8 @@ Entity *spawnWaypoint(void) waypoint->action = think; waypoint->flags |= EF_NO_MT_BOX; + SDL_QueryTexture(waypoint->texture, NULL, NULL, &waypoint->w, &waypoint->h); + return waypoint; }