[sylverant] r767 committed - Remove debugging printfs left in in the last revision... Oops.

1 view
Skip to first unread message

sylv...@googlecode.com

unread,
Dec 29, 2014, 4:20:34 PM12/29/14
to sylverant-...@googlegroups.com
Revision: 767
Author: bluecrab
Date: Mon Dec 29 21:20:16 2014 UTC
Log: Remove debugging printfs left in in the last revision... Oops.


https://code.google.com/p/sylverant/source/detail?r=767

Modified:
/trunk/shipgate/src/ship.c

=======================================
--- /trunk/shipgate/src/ship.c Mon Dec 29 21:18:55 2014 UTC
+++ /trunk/shipgate/src/ship.c Mon Dec 29 21:20:16 2014 UTC
@@ -3038,21 +3038,15 @@
char **row;
monster_event_t *ev;

- printf("got monster kill packet\n");
-
/* Ignore any packets that aren't version 1 or later. They're useless.
*/
if(pkt->hdr.version < 1)
return 0;

- printf("didn't drop\n");
-
/* See if there's an event currently running, otherwise we can safely
drop
any monster kill packets we get. */
if(!(ev = find_current_event(pkt->difficulty, pkt->version)))
return 0;

- printf("got current event\n");
-
/* Parse out the guildcard */
gc = ntohl(pkt->guildcard);

@@ -3089,7 +3083,6 @@
/* If their account id in the table is NULL, then bail. No need to
report an
error for this. */
if(!row[0]) {
- printf("no account\n");
sylverant_db_result_free(result);
return 0;
}
@@ -3100,14 +3093,11 @@

/* Are we recording all monsters, or just a few? */
if(ev->monster_count) {
- printf("have monsters\n");
for(i = 0; i < ev->monster_count; ++i) {
- printf("looking for monster %d\n", ev->monsters[i].monster);
if(ev->monsters[i].monster > 0x60)
continue;

ct = ntohl(pkt->counts[ev->monsters[i].monster]);
- printf("got count of %d\n", (int)ct);

if(!ct || pkt->episode != ev->monsters[i].episode)
continue;
@@ -3129,8 +3119,6 @@

return 0;
}
-
- printf("no monsters listed\n");

/* Go through each entry... */
for(i = 0; i < 0x60; ++i) {
Reply all
Reply to author
Forward
0 new messages