Replaced a magic number with a proper constant.

svn-id: r41476
This commit is contained in:
Denis Kasak 2009-06-12 10:39:33 +00:00
parent 5808e4f940
commit fc22ab5748

View File

@ -30,6 +30,9 @@
namespace Draci {
/** The maximum number of parameters for a GPL command */
const int kMaxParams = 3;
// FIXME: Add function handlers
/**
@ -43,11 +46,9 @@ struct GPL2Command {
byte _subNumber;
Common::String _name;
uint16 _numParams;
int _paramTypes[3];
int _paramTypes[kMaxParams];
};
const int kMaxParams = 3; //!< The maximum number of parameters for a GPL command
int gpldisasm(byte *gplcode, uint16 len);
}