* Readded Chemical Protection

* Removed some old eA code that was causing Frost Nova to do an extra hit
* Corrected Vulcan Arrow's hits in skill_db
* Readded zlib and zconf .h files to under /lib
* Fixed some compile errors in Windows
* Changed remove_control_characters back to supporting korean chars
* Moved some other code around

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1125 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
celest
2005-02-17 16:28:36 +00:00
parent 3a2e00b268
commit e9a7ccf3f2
17 changed files with 1658 additions and 529 deletions

View File

@@ -18,7 +18,6 @@
#include <netdb.h>
#endif
#include "../common/utils.h"
#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>
@@ -34,6 +33,7 @@
#include <stdarg.h>
#include "char.h"
#include "../common/utils.h"
#include "../common/strlib.h"
#include "itemdb.h"
#include "inter.h"
@@ -232,23 +232,6 @@ void set_char_offline(int char_id, int account_id) {
WFIFOSET(login_fd,6);
}
//-----------------------------------------------------
// Function to suppress control characters in a string.
//-----------------------------------------------------
int remove_control_chars(char *str) {
int i;
int change = 0;
for(i = 0; i < strlen(str); i++) {
if (str[i] < 32) {
str[i] = '_';
change = 1;
}
}
return change;
}
//----------------------------------------------------------------------
// Determine if an account (id) is a GM account
// and returns its level (or 0 if it isn't a GM account or if not found)