summaryrefslogtreecommitdiff
path: root/src/base/checkFront.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-13 18:45:15 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-13 18:45:15 +0000
commite792ee9cbe5191fcc81273b65bdb4ac9108435d5 (patch)
tree2238fccffd4265bccb14d23a958ec2cec8f6a2f1 /src/base/checkFront.c
parentbb15df3f3428df7cd2a4482adebcdaa6fc2f516e (diff)
- 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
Diffstat (limited to 'src/base/checkFront.c')
-rw-r--r--src/base/checkFront.c17
1 files changed, 7 insertions, 10 deletions
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;
}