From 778facb21f822cea549939c8dbee886e1cd342aa Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 6 Nov 2013 15:06:00 -0200 Subject: Modified @command loading So that HPM plugins are able to override default commands, thanks to Akkarin for bringing it up. Signed-off-by: shennetsind --- src/map/HPMmap.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/map/HPMmap.c') diff --git a/src/map/HPMmap.c b/src/map/HPMmap.c index ca4a7a2e8..8a69cba97 100644 --- a/src/map/HPMmap.c +++ b/src/map/HPMmap.c @@ -142,10 +142,7 @@ void HPM_map_atcommands(void) { unsigned int i; for(i = 0; i < atcommand_list_items; i++) { - if( !atcommand->add(atcommand_list[i].name,atcommand_list[i].func) ) { - ShowDebug("HPM_map_atcommands: duplicate command '%s', skipping...\n", atcommand_list[i].name); - continue; - } + atcommand->add(atcommand_list[i].name,atcommand_list[i].func,true); } } -- cgit v1.2.3-60-g2f50