namespace scripting {
FloatingImage::FloatingImage(const std::string& spritefile) :
- floating_image()
+ floating_image(std::make_shared<_FloatingImage>(spritefile))
{
using namespace worldmap;
- floating_image = std::make_shared<_FloatingImage>(spritefile);
if(Sector::current() != NULL) {
Sector::current()->add_object(floating_image);
} else if(WorldMap::current() != NULL) {
Tux::Tux(WorldMap* worldmap_) :
back_direction(),
worldmap(worldmap_),
- sprite(),
+ sprite(SpriteManager::current()->create("images/worldmap/common/tux.sprite")),
controller(),
input_direction(),
direction(),
moving(),
ghost_mode()
{
- sprite = SpriteManager::current()->create("images/worldmap/common/tux.sprite");
-
offset = 0;
moving = false;
direction = D_NONE;