Merge pull request #442 from OpenMW/master while resolving conflicts

# Conflicts:
#	CMakeLists.txt
0.6.3
David Cernat 7 years ago
commit c20a0c72c5

@ -636,6 +636,17 @@ fi
-DQT_QMAKE_EXECUTABLE="${QT_SDK}/bin/qmake.exe" \ -DQT_QMAKE_EXECUTABLE="${QT_SDK}/bin/qmake.exe" \
-DCMAKE_PREFIX_PATH="$QT_SDK" -DCMAKE_PREFIX_PATH="$QT_SDK"
if [ $CONFIGURATION == "Debug" ]; then
SUFFIX="d"
else
SUFFIX=""
fi
DIR=$(echo "${QT_SDK}" | sed "s,\\\\,/,g" | sed "s,\(.\):,/\\1,")
add_runtime_dlls "${DIR}/bin/Qt5"{Core,Gui,Network,OpenGL,Widgets}${SUFFIX}.dll
add_qt_platform_dlls "${DIR}/plugins/platforms/qwindows${SUFFIX}.dll"
echo Done. echo Done.
fi fi
} }
@ -710,7 +721,7 @@ if [ ! -z $CI ]; then
fi fi
# NOTE: Disable this when/if we want to run test cases # NOTE: Disable this when/if we want to run test cases
if [ -z $CI ]; then #if [ -z $CI ]; then
echo "- Copying Runtime DLLs..." echo "- Copying Runtime DLLs..."
mkdir -p $BUILD_CONFIG mkdir -p $BUILD_CONFIG
for DLL in $RUNTIME_DLLS; do for DLL in $RUNTIME_DLLS; do
@ -742,7 +753,7 @@ if [ -z $CI ]; then
cp "$DLL" "${BUILD_CONFIG}/platforms" cp "$DLL" "${BUILD_CONFIG}/platforms"
done done
echo echo
fi #fi
if [ -z $VERBOSE ]; then if [ -z $VERBOSE ]; then
printf -- "- Configuring... " printf -- "- Configuring... "

@ -381,8 +381,6 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL GNU OR CMAKE_CXX_COMPILER_ID STREQUAL Clang)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-but-set-parameter") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-but-set-parameter")
endif() endif()
elseif (MSVC) elseif (MSVC)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} /Zi /bigobj")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /DEBUG /OPT:REF /OPT:ICF /INCREMENTAL:NO")
# Enable link-time code generation globally for all linking # Enable link-time code generation globally for all linking
if (OPENMW_LTO_BUILD) if (OPENMW_LTO_BUILD)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GL") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GL")
@ -766,8 +764,7 @@ if (WIN32)
endif() endif()
if (BUILD_OPENMW) if (BUILD_OPENMW)
# Very specific issue this, only needed on 32-bit VS2015 during unity builds. if (OPENMW_UNITY_BUILD)
if (MSVC_VERSION GREATER 1800 AND CMAKE_SIZEOF_VOID_P EQUAL 4 AND OPENMW_UNITY_BUILD)
set_target_properties(tes3mp PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD} /bigobj") set_target_properties(tes3mp PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD} /bigobj")
else() else()
set_target_properties(tes3mp PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD}") set_target_properties(tes3mp PROPERTIES COMPILE_FLAGS "${WARNINGS} ${MT_BUILD}")

@ -2830,11 +2830,11 @@ namespace MWWorld
int y = std::stoi(name.substr(name.find(',')+1)); int y = std::stoi(name.substr(name.find(',')+1));
ext = getExterior(x, y)->getCell(); ext = getExterior(x, y)->getCell();
} }
catch (std::invalid_argument) catch (const std::invalid_argument&)
{ {
// This exception can be ignored, as this means that name probably refers to a interior cell instead of comma separated coordinates // This exception can be ignored, as this means that name probably refers to a interior cell instead of comma separated coordinates
} }
catch (std::out_of_range) catch (const std::out_of_range&)
{ {
throw std::runtime_error("Cell coordinates out of range."); throw std::runtime_error("Cell coordinates out of range.");
} }

@ -20,6 +20,7 @@ platform:
configuration: configuration:
# - Debug # - Debug
- Release - Release
# - RelWithDebInfo
# For the Qt, Boost, CMake, etc installs # For the Qt, Boost, CMake, etc installs
#os: Visual Studio 2017 #os: Visual Studio 2017
@ -48,7 +49,7 @@ install:
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH% - set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
before_build: before_build:
- cmd: sh %APPVEYOR_BUILD_FOLDER%\CI\before_script.msvc.sh -u -p %PLATFORM% -v %msvc% -V - cmd: sh %APPVEYOR_BUILD_FOLDER%\CI\before_script.msvc.sh -c %configuration% -p %PLATFORM% -v %msvc% -V
build_script: build_script:
- cmd: if %PLATFORM%==Win32 set build=MSVC%msvc%_32 - cmd: if %PLATFORM%==Win32 set build=MSVC%msvc%_32
@ -56,8 +57,8 @@ build_script:
- cmd: msbuild %build%\OpenMW.sln /t:Build /p:Configuration=%configuration% /m:2 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" - cmd: msbuild %build%\OpenMW.sln /t:Build /p:Configuration=%configuration% /m:2 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build: after_build:
- cmd: if %PLATFORM%==x64 7z a OpenMW_MSVC%msvc%_x64.zip %APPVEYOR_BUILD_FOLDER%\MSVC%msvc%_64\Release\ -xr"!*.pdb" - cmd: if %PLATFORM%==x64 7z a OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%.zip %APPVEYOR_BUILD_FOLDER%\MSVC%msvc%_64\%configuration%\ -xr"!*.pdb"
- cmd: if %PLATFORM%==x64 7z a OpenMW_MSVC%msvc%_x64_pdb.zip %APPVEYOR_BUILD_FOLDER%\MSVC%msvc%_64\Release\*.pdb #- cmd: if %PLATFORM%==x64 7z a OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%_pdb.zip %APPVEYOR_BUILD_FOLDER%\MSVC%msvc%_64\%configuration%\*.pdb
test: off test: off
@ -69,7 +70,7 @@ test: off
# on_build_status_changed: true # on_build_status_changed: true
artifacts: artifacts:
- path: OpenMW_MSVC%msvc%_x64.zip - path: OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%.zip
name: OpenMW_MSVC%msvc%_x64 name: OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%
- path: OpenMW_MSVC%msvc%_x64_pdb.zip #- path: OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%_pdb.zip
name: OpenMW_MSVC%msvc%_x64_pdb # name: OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%_pdb

@ -57,7 +57,7 @@ struct Weapon
float mWeight; float mWeight;
int mValue; int mValue;
short mType; short mType;
short mHealth; unsigned short mHealth;
float mSpeed, mReach; float mSpeed, mReach;
short mEnchant; // Enchantment points. The real value is mEnchant/10.f short mEnchant; // Enchantment points. The real value is mEnchant/10.f
unsigned char mChop[2], mSlash[2], mThrust[2]; // Min and max unsigned char mChop[2], mSlash[2], mThrust[2]; // Min and max

@ -38,11 +38,11 @@ namespace Gui
setCaption(MyGUI::utility::toString(mValue)); setCaption(MyGUI::utility::toString(mValue));
} }
} }
catch (std::invalid_argument) catch (const std::invalid_argument&)
{ {
setCaption(MyGUI::utility::toString(mValue)); setCaption(MyGUI::utility::toString(mValue));
} }
catch (std::out_of_range) catch (const std::out_of_range&)
{ {
setCaption(MyGUI::utility::toString(mValue)); setCaption(MyGUI::utility::toString(mValue));
} }

@ -268,11 +268,11 @@ namespace ICS
ctrl->setIgnoreAutoReverse(true); ctrl->setIgnoreAutoReverse(true);
if(mouseBinderItem.direction == Control::INCREASE) if(mouseBinderItem.direction == Control::INCREASE)
{ {
ctrl->setValue( float( (evt.state.Z.abs) / float(evt.state.¿width?) ) ); ctrl->setValue( float( (evt.state.Z.abs) / float(evt.state.¿width?) ) );
} }
else if(mouseBinderItem.direction == Control::DECREASE) else if(mouseBinderItem.direction == Control::DECREASE)
{ {
ctrl->setValue( float( (1 - evt.state.Z.abs) / float(evt.state.¿width?) ) ); ctrl->setValue( float( (1 - evt.state.Z.abs) / float(evt.state.¿width?) ) );
} }
}*/ }*/
} }

@ -23,7 +23,7 @@ distribution.
*/ */
/* /*
* THIS FILE WAS ALTERED BY Tyge Løvset, 7. April 2005. * THIS FILE WAS ALTERED BY Tyge Løvset, 7. April 2005.
*/ */

Loading…
Cancel
Save