Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 5, 2006, 2:31:04 PM (19 years ago)
Author:
amaechler
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/space_ships/hover.cc

    r9230 r9234  
    2525
    2626#include "util/loading/factory.h"
    27 #include "util/loading/resource_manager.h"
     27//#include "util/loading/resource_manager.h"
    2828
    2929#include "key_mapper.h"
     
    5252{
    5353  this->setPlayer(NULL);
     54
     55  //if (this->hoverBuffer != NULL)
     56  //  ResourceManager::getInstance()->unload(this->hoverBuffer);
    5457}
    5558
     
    7174  this->loadParams(doc.RootElement());
    7275
    73  //load sound
    74   if (this->hoverBuffer != NULL)
    75     ResourceManager::getInstance()->unload(this->hoverBuffer);
    76   this->hoverBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load("sound/engine/hover.wav", WAV);
     76  //load sound
     77  //if (this->hoverBuffer != NULL)
     78  //  ResourceManager::getInstance()->unload(this->hoverBuffer);
     79  //this->hoverBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load("sound/engine/hover.wav", WAV);
    7780
    7881}
     
    116119{
    117120
    118   this->hitEntity = NULL;
    119   this->hoverBuffer = NULL;
     121  //this->hitEntity = NULL;
     122  //this->hoverBuffer = NULL;
    120123
    121124  //  this->setRelDir(Quaternion(M_PI, Vector(1,0,0)));
     
    229232  State::getCameraTargetNode()->setParentSoft(&this->cameraNode);
    230233
    231   this->soundSource.play(this->hoverBuffer, 0.3f, true);
     234  //this->soundSource.play(this->hoverBuffer, 0.3f, true);
    232235
    233236}
Note: See TracChangeset for help on using the changeset viewer.