Fix most of the warnings in the Visual Studio build

- Fix energy-draining weapons
- Specials called when a spell is targeted on a space now work a little differently if the spell is multi-target. For each target, the special is triggered if it exists; otherwise the normal spell behaviour occurs.
This commit is contained in:
2015-02-20 12:18:38 -05:00
parent 50e3d7b378
commit 3fc1b8cd7e
8 changed files with 28 additions and 23 deletions

View File

@@ -467,7 +467,7 @@ static void readShopFromXml(ticpp::Element& data, cShop& shop, cScenario& scen)
shop.setPrompt(boost::lexical_cast<eShopPrompt>(val));
} else if(type == "face") {
pic_num_t face;
elem->GetText(face);
elem->GetText(&face);
shop.setFace(face);
} else if(type == "entries") {
int entries_found = 0;