Set width and height of entities in spawn functions.

This commit is contained in:
Steve 2016-04-01 14:20:47 +01:00
parent e2172a1789
commit a913dc613b
2 changed files with 4 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}