read_data(0) returns msg id now

This commit is contained in:
Pavol Marko 2004-04-03 19:16:26 +00:00
parent 7d13e8cd01
commit 0483e491b3

View File

@ -1264,6 +1264,10 @@ static cell AMX_NATIVE_CALL read_datanum(AMX *amx, cell *params) /* 0 param */
static cell AMX_NATIVE_CALL read_data(AMX *amx, cell *params) /* 3 param */ static cell AMX_NATIVE_CALL read_data(AMX *amx, cell *params) /* 3 param */
{ {
if (params[0] == 0)
{
return g_events.getCurrentMsgType();
}
switch( *params/sizeof(cell) ) { switch( *params/sizeof(cell) ) {
case 1: case 1:
return g_events.getArgInteger( params[1] ); return g_events.getArgInteger( params[1] );