From e792ee9cbe5191fcc81273b65bdb4ac9108435d5 Mon Sep 17 00:00:00 2001 From: oroborus Date: Sun, 13 Jul 2008 18:45:15 +0000 Subject: - ID manager pocita pocet referencii na ID - oprava chyb, suvisiaca so zlym spravovanim ID - oprava chyby, objekt sa neda pridat mimo priestor ( to uz pisem druhy krat do commnitu ;) ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@127 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/base/checkFront.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/base/checkFront.c') diff --git a/src/base/checkFront.c b/src/base/checkFront.c index f6164f3..941f41d 100644 --- a/src/base/checkFront.c +++ b/src/base/checkFront.c @@ -53,6 +53,11 @@ list_t* newCheckFront() void addMsgInCheckFront(list_t *list, char *msg, int type, int id) { + if( type == CHECK_FORNT_TYPE_CHECK ) + { + incID(id); + } + addList(list, newCheck(msg, type, id) ); } @@ -87,11 +92,7 @@ void eventMsgInCheckFront(client_t *client) if( this->count > CHECK_FRONT_MAX_COUNT_SEND ) { - if( isRegisterID(this->id) != -1 ) - { - delID(this->id); - } - + delID(this->id); delListItem(client->listSendMsg, i, destroyCheck); i--; } @@ -116,11 +117,7 @@ void delMsgInCheckFront(list_t *listCheckFront, int id) if( this->id == id ) { - if( isRegisterID(this->id) != -1 ) - { - delID(this->id); - } - + delID(this->id); delListItem(listCheckFront, i, destroyCheck); return; } -- cgit v1.2.3