Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2007, 3:46:05 PM (17 years ago)
Author:
gfilip
Message:

the skybox problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/camera/src/world_entities/skybox.cc

    r9869 r10259  
    3030
    3131#include "debug.h"
     32
     33#include "state.h"
     34#include "playable.h"
     35#include "player.h"
    3236
    3337#include "class_id_DEPRECATED.h"
     
    220224{
    221225  this->size = size;
     226}
     227
     228
     229
     230void SkyBox::tick(float dt)
     231{
     232  PRINTF(0)("tick\n");
     233
     234  Player* pl = State::getPlayer();
     235  if( pl == NULL)
     236    return;
     237
     238  Playable* playable = pl->getPlayable();
     239  if( playable == NULL)
     240    return;
     241
     242  if( this->getParent() != playable)
     243    this->setParent( playable);
    222244}
    223245
Note: See TracChangeset for help on using the changeset viewer.