From 6125b6bc5204a618e6fc8976600332a423bd0fc0 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 23 Nov 2006 15:33:51 +0000 Subject: - Made WFIFOHEAD() check for available buffer size remaining on the connection, and when there's not enough space, it will increase it. - Added define TURBO to the Makefile. It enables MouseJstr's socket access optimization which should speed up the code when accessing the write/read buffers repeatedly within a function. - Fixed the functions where the RFIFOHEAD/WFIFOHEAD functions were used incorrectly (prevents TURBO enabled compilations from finishing) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9297 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char/inter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/char/inter.c') diff --git a/src/char/inter.c b/src/char/inter.c index 74ea3a956..ab97c6512 100644 --- a/src/char/inter.c +++ b/src/char/inter.c @@ -614,7 +614,8 @@ int mapif_parse_Registry(int fd) { // Request the value of all registries. int mapif_parse_RegistryRequest(int fd) -{ +{ + RFIFOHEAD(fd); //Load Char Registry if (RFIFOB(fd,12)) char_account_reg_reply(fd,RFIFOL(fd,2),RFIFOL(fd,6)); -- cgit v1.2.3-70-g09d2