diff --git a/src/BoE.vsproj/Common/Common.vcxproj b/src/BoE.vsproj/Common/Common.vcxproj index 5e5943af..3b6d8833 100644 --- a/src/BoE.vsproj/Common/Common.vcxproj +++ b/src/BoE.vsproj/Common/Common.vcxproj @@ -20,7 +20,6 @@ - @@ -28,7 +27,6 @@ - @@ -83,14 +81,12 @@ - - diff --git a/src/BoE.vsproj/Common/Common.vcxproj.filters b/src/BoE.vsproj/Common/Common.vcxproj.filters index 5d2c8cf6..789ab9e5 100644 --- a/src/BoE.vsproj/Common/Common.vcxproj.filters +++ b/src/BoE.vsproj/Common/Common.vcxproj.filters @@ -67,9 +67,6 @@ Classes\Header Files - - Classes\Header Files - Classes\Header Files @@ -91,9 +88,6 @@ Classes\Header Files - - Classes\Header Files - Classes\Header Files @@ -252,9 +246,6 @@ Classes\Source Files - - Classes\Source Files - Classes\Source Files @@ -273,9 +264,6 @@ Classes\Source Files - - Classes\Source Files - Classes\Source Files diff --git a/src/BoE.vsproj/Game/Blades of Exile.vcxproj b/src/BoE.vsproj/Game/Blades of Exile.vcxproj index 7174e1b7..4f83e470 100644 --- a/src/BoE.vsproj/Game/Blades of Exile.vcxproj +++ b/src/BoE.vsproj/Game/Blades of Exile.vcxproj @@ -59,7 +59,7 @@ Windows true - opengl32.lib;sfml-system-d.lib;sfml-window-d.lib;sfml-graphics-d.lib;sfml-audio-d.lib;libboost_filesystem-vc120-mt-gd-1_55.lib;libboost_system-vc120-mt-gd-1_55.lib;libboost_thread-vc120-mt-gd-1_55.lib;zlib.lib;%(AdditionalDependencies) + opengl32.lib;sfml-system-d.lib;sfml-window-d.lib;sfml-graphics-d.lib;sfml-audio-d.lib;libboost_filesystem-vc120-mt-gd-*.lib;libboost_system-vc120-mt-gd-*.lib;libboost_thread-vc120-mt-gd-*.lib;zlib.lib;%(AdditionalDependencies) mainCRTStartup diff --git a/src/BoE.vsproj/PcEdit/Char Editor.vcxproj b/src/BoE.vsproj/PcEdit/Char Editor.vcxproj index 67805677..c88950c2 100644 --- a/src/BoE.vsproj/PcEdit/Char Editor.vcxproj +++ b/src/BoE.vsproj/PcEdit/Char Editor.vcxproj @@ -63,7 +63,7 @@ Windows true - opengl32.lib;sfml-system-d.lib;sfml-window-d.lib;sfml-graphics-d.lib;sfml-audio-d.lib;libboost_filesystem-vc120-mt-gd-1_55.lib;libboost_system-vc120-mt-gd-1_55.lib;libboost_thread-vc120-mt-gd-1_55.lib;zlib.lib;%(AdditionalDependencies) + opengl32.lib;sfml-system-d.lib;sfml-window-d.lib;sfml-graphics-d.lib;sfml-audio-d.lib;libboost_filesystem-vc120-mt-gd-*.lib;libboost_system-vc120-mt-gd-*.lib;libboost_thread-vc120-mt-gd-*.lib;zlib.lib;%(AdditionalDependencies) mainCRTStartup @@ -88,7 +88,7 @@ true true true - opengl32.lib;sfml-system.lib;sfml-window.lib;sfml-graphics.lib;sfml-audio.lib;libboost_filesystem-vc120-mt-1_55.lib;libboost_system-vc120-mt-1_55.lib;libboost_thread-vc120-mt-1_55.lib;zlib.lib;%(AdditionalDependencies) + opengl32.lib;sfml-system.lib;sfml-window.lib;sfml-graphics.lib;sfml-audio.lib;libboost_filesystem-vc120-mt-*.lib;libboost_system-vc120-mt-*.lib;libboost_thread-vc120-mt-*.lib;zlib.lib;%(AdditionalDependencies) mainCRTStartup diff --git a/src/BoE.vsproj/ScenEdit/Scen Editor.vcxproj b/src/BoE.vsproj/ScenEdit/Scen Editor.vcxproj index 8615de82..95606e6f 100644 --- a/src/BoE.vsproj/ScenEdit/Scen Editor.vcxproj +++ b/src/BoE.vsproj/ScenEdit/Scen Editor.vcxproj @@ -63,7 +63,7 @@ Windows true - opengl32.lib;sfml-system-d.lib;sfml-window-d.lib;sfml-graphics-d.lib;sfml-audio-d.lib;libboost_filesystem-vc120-mt-gd-1_55.lib;libboost_system-vc120-mt-gd-1_55.lib;libboost_thread-vc120-mt-gd-1_55.lib;zlib.lib;%(AdditionalDependencies) + opengl32.lib;sfml-system-d.lib;sfml-window-d.lib;sfml-graphics-d.lib;sfml-audio-d.lib;libboost_filesystem-vc120-mt-gd-*.lib;libboost_system-vc120-mt-gd-*.lib;libboost_thread-vc120-mt-gd-*.lib;zlib.lib;%(AdditionalDependencies) mainCRTStartup @@ -88,7 +88,7 @@ true true true - opengl32.lib;sfml-system.lib;sfml-window.lib;sfml-graphics.lib;sfml-audio.lib;libboost_filesystem-vc120-mt-1_55.lib;libboost_system-vc120-mt-1_55.lib;libboost_thread-vc120-mt-1_55.lib;zlib.lib;%(AdditionalDependencies) + opengl32.lib;sfml-system.lib;sfml-window.lib;sfml-graphics.lib;sfml-audio.lib;libboost_filesystem-vc120-mt-*.lib;libboost_system-vc120-mt-*.lib;libboost_thread-vc120-mt-*.lib;zlib.lib;%(AdditionalDependencies) mainCRTStartup diff --git a/src/boe.menus.win.cpp b/src/boe.menus.win.cpp index bd909816..6c3293e2 100644 --- a/src/boe.menus.win.cpp +++ b/src/boe.menus.win.cpp @@ -33,7 +33,6 @@ enum { extern short on_spell_menu[2][62]; extern short on_monst_menu[256]; extern bool party_in_memory; -extern short current_pc; extern cUniverse univ; extern eGameMode overall_mode; extern sf::RenderWindow mainPtr; @@ -179,7 +178,7 @@ void adjust_spell_menus() { short old_on_spell_menu[2][62]; bool need_menu_change = false; - if(overall_mode == MODE_STARTUP || current_pc == 6) + if(overall_mode == MODE_STARTUP || univ.cur_pc == 6) return; for(i = 0; i < 2; i++) @@ -192,7 +191,7 @@ void adjust_spell_menus() { on_spell_menu[0][i] = -1; } for(i = 0; i < 62; i++) - if(pc_can_cast_spell(current_pc, cSpell::fromNum(eSkill::MAGE_SPELLS, i))) { + if(pc_can_cast_spell(univ.current_pc(), cSpell::fromNum(eSkill::MAGE_SPELLS, i))) { on_spell_menu[0][spell_pos] = i; spell_pos++; } @@ -222,7 +221,7 @@ void adjust_spell_menus() { on_spell_menu[1][i] = -1; } for(i = 0; i < 62; i++) - if(pc_can_cast_spell(current_pc, cSpell::fromNum(eSkill::PRIEST_SPELLS, i))) { + if(pc_can_cast_spell(univ.current_pc(), cSpell::fromNum(eSkill::PRIEST_SPELLS, i))) { on_spell_menu[1][spell_pos] = i; spell_pos++; } diff --git a/src/classes/party.cpp b/src/classes/party.cpp index a63c6fbd..e4086612 100644 --- a/src/classes/party.cpp +++ b/src/classes/party.cpp @@ -1190,7 +1190,6 @@ bool cParty::pc_present(short i) const { return !isSplit(adven[i]->main_status); } -extern cUniverse univ; bool cParty::start_split(short x,short y,snd_num_t noise,short who) { if(who >= 6 || who < 0) return false; if(is_split()) @@ -1213,8 +1212,8 @@ bool cParty::end_split(snd_num_t noise) { if(!is_split()) return false; for(short i = 0; i < 6; i++){ - if(isSplit(univ.party[i].main_status)) - univ.party[i].main_status -= eMainStatus::SPLIT; + if(isSplit(adven[i]->main_status)) + adven[i]->main_status -= eMainStatus::SPLIT; } play_sound(noise); return true; diff --git a/src/classes/pc.hpp b/src/classes/pc.hpp index 4c6120d8..c8584415 100644 --- a/src/classes/pc.hpp +++ b/src/classes/pc.hpp @@ -13,6 +13,7 @@ #include #include #include +#include #include "simpletypes.hpp" #include "item.hpp" diff --git a/src/classes/scenario.cpp b/src/classes/scenario.cpp index 912bad1e..2b8a3f59 100644 --- a/src/classes/scenario.cpp +++ b/src/classes/scenario.cpp @@ -118,8 +118,6 @@ cScenario::cScenario(const cScenario& other) , campaign_id(other.campaign_id) , scen_items(other.scen_items) , scen_name(other.scen_name) - , who_wrote{other.who_wrote[0], other.who_wrote[1]} - , contact_info{other.contact_info[0], other.contact_info[1]} , intro_strs(other.intro_strs) , journal_strs(other.journal_strs) , spec_strs(other.spec_strs) @@ -130,6 +128,11 @@ cScenario::cScenario(const cScenario& other) , towns(other.towns.size()) , outdoors(other.outdoors.width(), other.outdoors.height()) { + // MSVC 12 doesn't like arrays in the initializer list. :( + who_wrote[0] = other.who_wrote[0]; + who_wrote[1] = other.who_wrote[1]; + contact_info[0] = other.contact_info[0]; + contact_info[1] = other.contact_info[1]; // Copy towns and sectors for(size_t i = 0; i < towns.size(); i++) towns[i] = new cTown(*other.towns[i]); diff --git a/src/classes/town.hpp b/src/classes/town.hpp index 6f1d296b..fafbf254 100644 --- a/src/classes/town.hpp +++ b/src/classes/town.hpp @@ -12,6 +12,7 @@ #include #include #include +#include #include "simpletypes.hpp" #include "location.hpp" #include "special.hpp"