diff --git a/apps/openmw/mwgui/layouts.cpp b/apps/openmw/mwgui/layouts.cpp index 06727b55c..73b8d77e8 100644 --- a/apps/openmw/mwgui/layouts.cpp +++ b/apps/openmw/mwgui/layouts.cpp @@ -9,6 +9,9 @@ #include #include +#undef min +#undef max + using namespace MWGui; const int StatsWindow::lineHeight = 18; diff --git a/apps/openmw/mwgui/widgets.cpp b/apps/openmw/mwgui/widgets.cpp index 7f23ff34e..a66509758 100644 --- a/apps/openmw/mwgui/widgets.cpp +++ b/apps/openmw/mwgui/widgets.cpp @@ -6,6 +6,9 @@ #include +#undef min +#undef max + using namespace MWGui; using namespace MWGui::Widgets; diff --git a/apps/openmw/mwmechanics/stat.hpp b/apps/openmw/mwmechanics/stat.hpp index 075417850..2449075a8 100644 --- a/apps/openmw/mwmechanics/stat.hpp +++ b/apps/openmw/mwmechanics/stat.hpp @@ -1,6 +1,9 @@ #ifndef GAME_MWMECHANICS_STAT_H #define GAME_MWMECHANICS_STAT_H +#undef min +#undef max + #include namespace MWMechanics diff --git a/apps/openmw/mwrender/mwscene.cpp b/apps/openmw/mwrender/mwscene.cpp index b2ece8bd3..c8c475351 100644 --- a/apps/openmw/mwrender/mwscene.cpp +++ b/apps/openmw/mwrender/mwscene.cpp @@ -19,9 +19,10 @@ using namespace MWRender; using namespace Ogre; -MWScene::MWScene(OEngine::Render::OgreRenderer &_rend) +MWScene::MWScene(OEngine::Render::OgreRenderer &_rend , OEngine::Physic::PhysicEngine* physEng) : rend(_rend) { + eng = physEng; rend.createScene("PlayerCam", 55, 5); // Set default mipmap level (NB some APIs ignore this) diff --git a/apps/openmw/mwrender/mwscene.hpp b/apps/openmw/mwrender/mwscene.hpp index b9cda3675..3a49d5e36 100644 --- a/apps/openmw/mwrender/mwscene.hpp +++ b/apps/openmw/mwrender/mwscene.hpp @@ -46,7 +46,7 @@ namespace MWRender public: - MWScene (OEngine::Render::OgreRenderer &_rend); + MWScene (OEngine::Render::OgreRenderer &_rend , OEngine::Physic::PhysicEngine* physEng); ~MWScene();