Little tweaks/fixes

- It's now possible to cancel dropping an item, by pressing the drop button again
- Another fix for the issue with bad outdoor encounters
- Add frame around item palette entries
This commit is contained in:
2015-06-04 23:53:07 -04:00
parent dd589001c6
commit c3828141a0
4 changed files with 9 additions and 2 deletions

View File

@@ -119,6 +119,8 @@ void cOutdoors::append(legacy::outdoor_record_type& old){
cOutdoors::cWandering::cWandering() {
spec_on_meet = spec_on_win = spec_on_flee = -1;
end_spec1 = end_spec2 = -1;
std::fill(monst.begin(), monst.end(), 0);
std::fill(friendly.begin(), friendly.end(), 0);
}
cOutdoors::cOutdoors(cScenario& scenario, bool init_strings) : scenario(scenario) {

View File

@@ -39,7 +39,8 @@ cParty::cParty(cUniverse& univ, long party_preset) : univ(univ) {
for(int i = 0; i < 5; i++)
for(int j = 0; j < 10; j++)
magic_store_items[i][j].variety = eItemType::NO_ITEM;
for(int i = 0; i < 10; i++)
out_c[i].exists = false;
for(int i = 0; i < 6; i++)
adven[i] = new cPlayer(*this, party_preset, i);
}