Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2020


Ignore:
Timestamp:
Oct 27, 2008, 11:44:20 AM (15 years ago)
Author:
rgrieder
Message:
  • Updated msvc files
  • Changed iterator to const_iterator for stl iterator in constant member functions (msvc reports a build error otherwise)
  • Added linkage again to BLANKSTRING: The whole idea about it was to give "" an address in the memory so we can return that address. static const variables however don't have a linkage and therefore no address, so it's equivalent to writing "". Fortunately, at least msvc (gcc too I guess) is clever enough to artificially create a real symbol, so it did work without the linkage.
Location:
code/branches/objecthierarchy
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/objects/gametypes/Gametype.cc

    r2019 r2020  
    143143            unsigned int randomspawn = (unsigned int)rnd(this->spawnpoints_.size());
    144144            unsigned int index = 0;
    145             for (std::set<SpawnPoint*>::iterator it = this->spawnpoints_.begin(); it != this->spawnpoints_.end(); ++it)
     145            for (std::set<SpawnPoint*>::const_iterator it = this->spawnpoints_.begin(); it != this->spawnpoints_.end(); ++it)
    146146            {
    147147                if (index == randomspawn)
     
    156156    void Gametype::assignDefaultPawnsIfNeeded() const
    157157    {
    158         for (std::set<PlayerInfo*>::iterator it = this->players_.begin(); it != this->players_.end(); ++it)
     158        for (std::set<PlayerInfo*>::const_iterator it = this->players_.begin(); it != this->players_.end(); ++it)
    159159        {
    160160            if (!(*it)->getControllableEntity() && (!(*it)->isReadyToSpawn() || !this->bStarted_))
  • code/branches/objecthierarchy/src/util/String.cc

    r2019 r2020  
    3939#include "Convert.h"
    4040#include "Math.h"
     41
     42std::string BLANKSTRING("");
    4143
    4244std::string getUniqueNumberString()
  • code/branches/objecthierarchy/src/util/String.h

    r2019 r2020  
    4040#include <sstream>
    4141
    42 _UtilExport static const std::string BLANKSTRING = "";
     42extern _UtilExport std::string BLANKSTRING;
    4343_UtilExport std::string getUniqueNumberString();
    4444
  • code/branches/objecthierarchy/visual_studio/vc8/orxonox.vcproj

    r2013 r2020  
    155155                        </File>
    156156                        <File
     157                                RelativePath="..\..\src\orxonox\LevelManager.cc"
     158                                >
     159                        </File>
     160                        <File
    157161                                RelativePath="..\..\src\orxonox\Main.cc"
    158162                                >
     
    214218                                </File>
    215219                                <File
     220                                        RelativePath="..\..\src\orxonox\objects\Scene.cc"
     221                                        >
     222                                </File>
     223                                <File
    216224                                        RelativePath="..\..\src\orxonox\objects\Script.cc"
    217225                                        >
     
    242250                                        <File
    243251                                                RelativePath="..\..\src\orxonox\objects\worldentities\PositionableEntity.cc"
     252                                                >
     253                                        </File>
     254                                        <File
     255                                                RelativePath="..\..\src\orxonox\objects\worldentities\SpawnPoint.cc"
    244256                                                >
    245257                                        </File>
     
    268280                                        Name="infos"
    269281                                        >
     282                                        <File
     283                                                RelativePath="..\..\src\orxonox\objects\infos\HumanPlayer.cc"
     284                                                >
     285                                        </File>
    270286                                        <File
    271287                                                RelativePath="..\..\src\orxonox\objects\infos\Info.cc"
     
    507523                        </File>
    508524                        <File
     525                                RelativePath="..\..\src\orxonox\LevelManager.h"
     526                                >
     527                        </File>
     528                        <File
    509529                                RelativePath="..\..\src\orxonox\OrxonoxPrereqs.h"
    510530                                >
     
    550570                                </File>
    551571                                <File
     572                                        RelativePath="..\..\src\orxonox\objects\Scene.h"
     573                                        >
     574                                </File>
     575                                <File
    552576                                        RelativePath="..\..\src\orxonox\objects\Script.h"
    553577                                        >
     
    578602                                        <File
    579603                                                RelativePath="..\..\src\orxonox\objects\worldentities\PositionableEntity.h"
     604                                                >
     605                                        </File>
     606                                        <File
     607                                                RelativePath="..\..\src\orxonox\objects\worldentities\SpawnPoint.h"
    580608                                                >
    581609                                        </File>
Note: See TracChangeset for help on using the changeset viewer.