Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4818 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc


Ignore:
Timestamp:
Jul 7, 2005, 5:24:34 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: crosshair gets deleted also, now all event listeners are removed at the end

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/player.cc

    r4781 r4818  
    3535#include "crosshair.h"
    3636
    37 Crosshair* test;
     37
    3838
    3939using namespace std;
     
    6363  this->weaponMan->addWeapon(wpRight, W_CONFIG2);
    6464  this->weaponMan->addWeapon(wpLeft, W_CONFIG2);
    65 
    6665}
    6766
     
    7776  */
    7877  delete this->weaponMan;
     78  delete this->crosshair;
    7979}
    8080
     
    102102
    103103
    104   test = new Crosshair();
     104  this->crosshair = new Crosshair();
    105105}
    106106
     
    198198void Player::draw ()
    199199{
    200   test->draw();
     200  this->crosshair->draw();
    201201  glMatrixMode(GL_MODELVIEW);
    202202  glPushMatrix();
Note: See TracChangeset for help on using the changeset viewer.