Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 19, 2015, 12:39:06 PM (10 years ago)
Author:
maxima
Message:

Trunk(-r10279) merged to tutorial branch. Works now on ITET-Tardis.

Location:
code/branches/tutorial5
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial5

  • code/branches/tutorial5/src/libraries/core/GUIManager.cc

    r10271 r10280  
    846846        this->guiRenderer_->setDisplaySize(CEGUI::Size((float)newWidth, (float)newHeight));
    847847#endif
    848         this->rootWindow_->setSize(CEGUI::UVector2(CEGUI::UDim(1, newWidth), CEGUI::UDim(1, newHeight)));
     848        this->rootWindow_->setSize(CEGUI::UVector2(CEGUI::UDim(1, (float)newWidth), CEGUI::UDim(1, (float)newHeight)));
    849849    }
    850850
  • code/branches/tutorial5/src/libraries/core/Loader.cc

    r10273 r10280  
    470470                    //A newline directly after square brackets is ignored. To make sure that the string is printed
    471471                    //exactly as it is, including newlines at the beginning, insert a space after the brackets.
    472                     output << "print([" + equalSigns + "[ " + temp + ']' + equalSigns +"])";
     472                    bool needsExtraSpace = false;
     473                    if (temp.size() > 0 && (temp[0] == '\n' || temp[0] == '\r')) // begins with \n or \r (a line break)
     474                        needsExtraSpace = true;
     475                    output << "print([" + equalSigns + (needsExtraSpace ? "[ " : "[") + temp + ']' + equalSigns +"])";
    473476                    start = end + 5;
    474477                }
  • code/branches/tutorial5/src/libraries/tools/BulletDebugDrawer.cc

    r10262 r10280  
    1212#include <OgreManualObject.h>
    1313#include <OgreSceneManager.h>
     14#include <OgreTimer.h>
    1415
    1516#include "util/Output.h"
  • code/branches/tutorial5/src/libraries/tools/BulletDebugDrawer.h

    r10262 r10280  
    1212
    1313#include <btBulletCollisionCommon.h>
     14#include <OgreFrameListener.h>
    1415
    1516namespace orxonox
Note: See TracChangeset for help on using the changeset viewer.