From 9f6b1bf3a1fbae4497a8c68cb2aec9d3c6f819cd Mon Sep 17 00:00:00 2001 From: Jamieson Christian Date: Thu, 15 May 2003 23:08:03 +0000 Subject: Removed deprecated _program. Miscellaneous cleanup. svn-id: r7552 --- scumm/instrument.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scumm/instrument.cpp') diff --git a/scumm/instrument.cpp b/scumm/instrument.cpp index f0bfdb082d..e1f129006c 100644 --- a/scumm/instrument.cpp +++ b/scumm/instrument.cpp @@ -25,7 +25,7 @@ #include "scumm/instrument.h" #include "sound/mididrv.h" -#define NATIVE_MT32 false +#define NATIVE_MT32 true static const byte mt32_to_gm[128] = { // 0 1 2 3 4 5 6 7 8 9 A B C D E F @@ -136,6 +136,7 @@ public: void send (MidiChannel *mc); void copy_to (Instrument *dest) { dest->program (_program, _mt32); } bool is_valid() { return (_program < 128); } + operator int() { return (_program < 128) ? _program : 255; } }; class Instrument_Adlib : public InstrumentInternal { -- cgit v1.2.3