This commit is contained in:
Rachael Alexanderson 2017-05-28 10:50:06 -04:00
commit 61660bf147
2 changed files with 7 additions and 2 deletions

View File

@ -363,7 +363,12 @@ public:
void WildMidiSetOption(int opt, int set); void WildMidiSetOption(int opt, int set);
void CreateSMF(TArray<uint8_t> &file, int looplimit=0); void CreateSMF(TArray<uint8_t> &file, int looplimit=0);
int ServiceEvent(); int ServiceEvent();
int GetDeviceType() const override { return MIDI->GetDeviceType(); } int GetDeviceType() const override
{
return nullptr == MIDI
? MusInfo::GetDeviceType()
: MIDI->GetDeviceType();
}
protected: protected:
MIDIStreamer(const char *dumpname, EMidiDevice type); MIDIStreamer(const char *dumpname, EMidiDevice type);

View File

@ -214,7 +214,7 @@ class BasicArmor : Armor
// Once the armor has absorbed its part of the damage, then apply its damage factor, if any, to the player // Once the armor has absorbed its part of the damage, then apply its damage factor, if any, to the player
if ((damage > 0) && (ArmorType != 'None')) // BasicArmor is not going to have any damage factor, so skip it. if ((damage > 0) && (ArmorType != 'None')) // BasicArmor is not going to have any damage factor, so skip it.
{ {
ApplyDamageFactors(ArmorType, damageType, damage, damage); newdamage = ApplyDamageFactors(ArmorType, damageType, damage, damage);
} }
} }
} }