Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3753 in orxonox.OLD for orxonox/branches/levelloader


Ignore:
Timestamp:
Apr 7, 2005, 11:14:11 PM (20 years ago)
Author:
patrick
Message:

branches/levelloader: now compiling again under linux

Location:
orxonox/branches/levelloader/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelloader/src/lib/util/resource_manager.cc

    r3746 r3753  
    396396bool ResourceManager::isDir(const char* directoryName)
    397397{
    398         #ifdef __WIN32__
    399                 return false;
    400         #elif
     398#ifdef __WIN32__
     399  return false;
     400#elif __unix__
    401401  struct stat status;
    402402  stat(directoryName, &status);
     
    405405  else
    406406    return false;
    407   #endif
     407#endif
    408408}
    409409
     
    417417bool ResourceManager::isFile(const char* fileName)
    418418{
    419         #ifdef __WIN32__
    420                 return false;
    421         #elif
     419#ifdef __WIN32__
     420  return false;
     421#elif __unix__
    422422  struct stat status;
    423423  stat(fileName, &status);
     
    426426  else
    427427    return false;
    428   #endif
     428#endif
    429429}
    430430
  • orxonox/branches/levelloader/src/orxonox.cc

    r3746 r3753  
    344344#include "base_object.h"
    345345
    346 #ifdef __WIN32__
    347 #elif
     346#ifndef __WIN32__
    348347#include <asm/msr.h>
    349348#include <linux/timex.h>
     
    358357int startBenchmarks()
    359358{
    360         #ifndef __WIN32__
     359#ifndef __WIN32__
    361360  printf("===========================================================\n");
    362361  printf("=                      BENCHMARKS                         =\n");
  • orxonox/branches/levelloader/src/story_entities/world.cc

    r3746 r3753  
     1
    12
    23/*
     
    149150        }
    150151       
    151         localPlayer = NULL;
     152  this->localPlayer = NULL;
    152153  this->entities = new tList<WorldEntity>();
    153                
     154       
     155
     156  this->setClassName ("World");
    154157}
    155158
Note: See TracChangeset for help on using the changeset viewer.