summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-26 07:33:21 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-26 07:33:21 +0000
commit952d9ecd0f059e9801c7344154df83e7a7110ead (patch)
tree17cac8c6203b79330851ee620dd6431c9ce1f62e
parentdd86930bcace0da25bc2963fbfc1c5c3d2787455 (diff)
downloadhercules-952d9ecd0f059e9801c7344154df83e7a7110ead.tar.gz
hercules-952d9ecd0f059e9801c7344154df83e7a7110ead.tar.bz2
hercules-952d9ecd0f059e9801c7344154df83e7a7110ead.tar.xz
hercules-952d9ecd0f059e9801c7344154df83e7a7110ead.zip
Make it work a bit better with win32
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@366 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/Makefile.win324
-rw-r--r--src/map/atcommand.c12
-rw-r--r--src/map/atcommand.h2
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/map.h2
-rw-r--r--src/map/skill.c6
6 files changed, 14 insertions, 14 deletions
diff --git a/src/map/Makefile.win32 b/src/map/Makefile.win32
index 384554008..ed4b4e95a 100644
--- a/src/map/Makefile.win32
+++ b/src/map/Makefile.win32
@@ -15,8 +15,8 @@ txtobj:
sqlobj:
mkdir sqlobj
-ZLIBDIR = C:/athena/zlib122
-PACKETDEF = -DPACKETVER=5 -DNEW_006b
+ZLIBDIR = C:/eathena/zlib122
+PACKETDEF = -DPACKETVER=5 -DNEW_006b -D__WIN32
# OPT = /MDd /D_DEBUG
OPT =
LINKOPT = /debug /SUBSYSTEM:CONSOLE
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 4020b82e3..34bf0150d 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -568,10 +568,10 @@ char * job_name(int class) {
}
/*==========================================
- * str_lower (replace strlwr, non ANSI function that doesn't exist in all C compilator)
+ * estr_lower (replace strlwr, non ANSI function that doesn't exist in all C compilator)
*------------------------------------------
*/
-char *str_lower(char *str)
+char *estr_lower(char *str)
{
int i;
@@ -7570,7 +7570,7 @@ atcommand_uptime(
minutes = seconds/minute;
seconds -= (seconds/minute>0)?(seconds/minute)*minute:0;
- snprintf(output, sizeof(output), msg_table[245], days, hours, minutes, seconds);
+ snprintf(output, sizeof(output), msg_table[245], days, hours, minutes, seconds);
clif_displaymessage(fd,output);
return 0;
}
@@ -7654,14 +7654,14 @@ atcommand_petid(const int fd, struct map_session_data* sd,
return -1;
if (sscanf(message, "%99s", searchtext) < 1)
return -1;
- str_lower(searchtext);
+ estr_lower(searchtext);
snprintf(temp0, sizeof(temp0), "Search results for: %s", searchtext);
clif_displaymessage(fd,temp0);
while (i < MAX_PET_DB) {
strcpy(temp1,pet_db[i].name);
- strcpy(temp1, str_lower(temp1));
+ strcpy(temp1, estr_lower(temp1));
strcpy(temp0,pet_db[i].jname);
- strcpy(temp0, str_lower(temp1));
+ strcpy(temp0, estr_lower(temp1));
if (strstr(temp1, searchtext) || strstr(temp0, searchtext) ) {
snprintf(temp0, sizeof(temp0), "ID: %i -- Name: %s", pet_db[i].class,
pet_db[i].jname);
diff --git a/src/map/atcommand.h b/src/map/atcommand.h
index caaad51cc..3d84cd5b9 100644
--- a/src/map/atcommand.h
+++ b/src/map/atcommand.h
@@ -249,7 +249,7 @@ int atcommand_recall(const int fd, struct map_session_data* sd, const char* comm
int atcommand_config_read(const char *cfgName);
int msg_config_read(const char *cfgName);
-char *str_lower(char *str);
+char *estr_lower(char *str);
char * job_name(int class);
int e_mail_check(unsigned char *email);
diff --git a/src/map/clif.c b/src/map/clif.c
index 0b0064aa9..2038304dc 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -6,12 +6,12 @@
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <stdarg.h>
#ifdef __WIN32
#define __USE_W32_SOCKETS
#include <windows.h>
#else
+#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
diff --git a/src/map/map.h b/src/map/map.h
index 6b8660998..bf443bf46 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -154,7 +154,7 @@ struct map_session_data {
unsigned infinite_autospell : 1;
} special_state;
int char_id, login_id1, login_id2, sex;
- int packet_ver; // 5: old, 6: 7july04, 7: 13july04, 8: 26july04, 9: 9aug04/16aug04/17aug04, 10: 6sept04 (by [Yor])
+ int packet_ver; // 5: old, 6: 7july04, 7: 13july04, 8: 26july04, 9: 9aug04/16aug04/17aug04, 10: 6sept04, 11: 21sept04, 12: 18oct04, 13: 25oct04 (by [Yor])
struct mmo_charstatus status;
struct item_data *inventory_data[MAX_INVENTORY];
short equip_index[11];
diff --git a/src/map/skill.c b/src/map/skill.c
index 7f000f4b4..536af3bdb 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -4529,6 +4529,9 @@ int skill_castend_nodamage_id( struct block_list *src, struct block_list *bl,int
break;
case GD_EMERGENCYCALL:
{
+ int dx[9]={-1, 1, 0, 0,-1, 1,-1, 1, 0};
+ int dy[9]={ 0, 0, 1,-1, 1,-1,-1, 1, 0};
+ int c, j = 0;
struct guild *g = NULL;
// Only usable during WoE
if (!agit_flag) {
@@ -4537,9 +4540,6 @@ int skill_castend_nodamage_id( struct block_list *src, struct block_list *bl,int
return 0;
}
// i don't know if it actually summons in a circle, but oh well. ;P
- int dx[9]={-1, 1, 0, 0,-1, 1,-1, 1, 0};
- int dy[9]={ 0, 0, 1,-1, 1,-1,-1, 1, 0};
- int c, j = 0;
if (sd && sd->status.guild_id > 0 && (g = guild_search(sd->status.guild_id)) &&
strcmp(sd->status.name,g->master)==0) {
for(i = 0; i < g->max_member; i++, j++) {