X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fserver%2Fio.c;h=d4c9faf860c4f05ae969a70ca95ef685c882b8fb;hb=3d1e20a13392317593a8a139f69829dfb3afcde6;hp=0cf2c056782aa2c56846580afb01676ec61f266d;hpb=2b2a1e0169b3a863fd87b679d789a4e2b789eb67;p=plomrogue
diff --git a/src/server/io.c b/src/server/io.c
index 0cf2c05..d4c9faf 100644
--- a/src/server/io.c
+++ b/src/server/io.c
@@ -190,7 +190,7 @@ static void try_growing_queue()
dur.tv_nsec = 33333333;
while (1)
{
- if (read_file_into_queue(world.file_in, &world.queue,&world.queue_size))
+ if (read_file_into_queue(world.file_in, &world.queue))
{
return;
}
@@ -349,9 +349,9 @@ static void write_map(struct Thing * player, FILE * file)
extern char * io_round()
{
- if (0 < world.queue_size)
+ if (world.queue && strlen(world.queue))
{
- return get_message_from_queue(&world.queue, &world.queue_size);
+ return get_message_from_queue(&world.queue);
}
if (world.do_update)
{
@@ -359,7 +359,7 @@ extern char * io_round()
world.do_update = 0;
}
try_growing_queue();
- return get_message_from_queue(&world.queue, &world.queue_size);
+ return get_message_from_queue(&world.queue);
}