Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 660 for code/branches


Ignore:
Timestamp:
Dec 20, 2007, 4:26:02 PM (17 years ago)
Author:
nicolasc
Message:
  • added FIXME-tags - should be selfexplanatory
Location:
code/branches/FICN/src
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/audio/AudioBuffer.cc

    r585 r660  
    3838                        loaded=AL_FALSE;
    3939
     40    //FIXME deprecated
    4041                alutLoadWAVFile((ALbyte*)fileName.c_str(), &format, &data, &size, &freq, &loop);
    4142                alBufferData(buffer, format, data, size, freq);
     43    //FIXME deprecated
    4244                alutUnloadWAV(format, data, size, freq);
    4345
  • code/branches/FICN/src/loader/LevelLoader.cc

    r659 r660  
    108108
    109109                        Ogre::OverlayManager& omgr = Ogre::OverlayManager::getSingleton();
    110                         Ogre::Overlay* mLoadOverlay;
     110                        Ogre::Overlay* mLoadOverlay; // FIXME: mey be uninitialized
    111111
    112112                        // Set loading screen
     
    152152                                {
    153153                                        tNode = 0;
    154           //FIXME something is worng, probably ==
     154          //FIXME something is wrong, probably missing ==
    155155                                        while( tNode = audioElem->IterateChildren( tNode ) )
    156156                                        {
  • code/branches/FICN/src/loader/LevelLoader.h

    r659 r660  
    3737    inline string image() {return image_; };
    3838  private:
    39     // Level information
     39    //! Level information
    4040    std::string name_;
    4141    std::string description_;
     
    4949    std::string loadingBarHeight_;
    5050
    51     // Set to true if it was possible to load the level file
     51    //! Set to true if it was possible to load the level file
    5252    bool valid_;
    5353
  • code/branches/FICN/src/network/Server.cc

    r636 r660  
    5050    gamestates = new GameStateManager(clients);
    5151  }
    52  
     52
    5353  /**
    5454   * This function opens the server by creating the listener thread
     
    5858    return;
    5959  }
    60  
     60
    6161  /**
    6262   * This function closes the server
     
    6666    return;
    6767  }
    68  
     68
    6969  /**
    7070   * This function sends out a message to all clients
     
    9595    return false;
    9696  }
    97  
     97
    9898  /**
    9999   * Run this function once every tick
     
    106106    return;
    107107  }
    108  
     108
    109109  /**
    110110   * processes all the packets waiting in the queue
     
    119119    }
    120120  }
    121  
     121
    122122  /**
    123123   * takes a new snapshot of the gamestate and sends it to the clients
     
    129129    //std::cout << "sent gamestate" << std::endl;
    130130  }
    131  
     131
    132132  /**
    133133   * sends the gamestate
     
    151151      int cid = temp->getID();
    152152      std::cout << "server, got acked ID: " << gid << std::endl;
    153       GameStateCompressed *gs = &(gamestates->popGameState(cid));
     153      GameStateCompressed *gs = &(gamestates->popGameState(cid)); // FIXME: taking address of temporary, check if correct
    154154      //std::cout << "adding gamestate" << std::endl;
    155155      connection->addPacket(packet_gen.gstate(gs), cid);
     
    163163    //return true;
    164164  }
    165  
     165
    166166  void Server::processAck( ack *data, int clientID){
    167167    clients->findClient(clientID)->setGamestateID(data->a);
    168168  }
    169  
     169
    170170}
  • code/branches/FICN/src/network/dummyclient2.cc

    r538 r660  
    6565    std::cout << "Connection failed" << std::endl;
    6666
    67   ENetPacket *packet;
     67  ENetPacket *packet;  //FIXME: unused var!
    6868  ENetEvent event;
    6969
  • code/branches/FICN/src/orxonox/hud/HUD.cc

    r659 r660  
    178178    rocketNum4_ = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/RocketNum4");
    179179
     180    // FIXME: unused vars!
    180181    float energyDistrPixelX_ = 100;
    181182    float energyDistrPixelY_ = 86;
  • code/branches/FICN/src/orxonox/objects/Camera.cc

    r618 r660  
    6262        sceneNode->attachObject((Ogre::MovableObject*)cam);
    6363
    64 
     64        // FIXME: unused var
    6565        Ogre::Viewport* vp = orxonox::Orxonox::getSingleton()->getOgrePointer()->getRoot()->getAutoCreatedWindow()->addViewport(cam);
    6666
  • code/branches/FICN/src/orxonox/objects/Projectile.cc

    r646 r660  
    5050                if (this->getPosition().squaredDistance(it->getPosition()) <= (radius*radius))
    5151                {
    52                     Explosion* eplosion = new Explosion(this);
     52                    Explosion* explosion = new Explosion(this);
    5353                    delete this;
    5454                    return;
  • code/branches/FICN/src/orxonox/objects/SpaceShip.cc

    r647 r660  
    347347        if (this->bLMousePressed_ && this->timeToReload_ <= 0)
    348348        {
     349            // FIXME, unused var; try recycling of projectiles
    349350            Projectile* proj = new Projectile(this);
    350351            this->timeToReload_ = this->reloadTime_;
  • code/branches/FICN/src/orxonox/objects/weapon_system/ammunition_dump.cc

    r637 r660  
    106106  {
    107107    int id = Orxonox::getSingleton()->getBulletMgr()->getAmmunitionID(name);
    108     if (id = -1)
     108    // FIXME changed = to ==, check if correct
     109    if (id == -1)
    109110      return -1;
    110111    return stock_[id];
  • code/branches/FICN/src/tinyxml/tinystr.cc

    r471 r660  
    2424
    2525/*
    26  * THIS FILE WAS ALTERED BY Tyge Løvset, 7. April 2005.
     26 * THIS FILE WAS ALTERED BY Tyge Lvset, 7. April 2005.
    2727 */
    2828
     
    3636
    3737// Null rep.
     38//FIXME: missing braces around initializer for ‘char [1]’
    3839TiXmlString::Rep TiXmlString::nullrep_ = { 0, 0, '\0' };
    3940
Note: See TracChangeset for help on using the changeset viewer.