summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/map.c4
-rw-r--r--src/map/map.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/map/map.c b/src/map/map.c
index fc2049724..d6f6d72fa 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1886,13 +1886,13 @@ static int map_readmap(int m,char *fn, char *alias, int *map_cache, int maxmap)
unsigned char *gat="";
size_t size;
- int i;
+ int i = 0;
int e = 0;
char progress[21] = " ";
//printf("\rLoading Maps [%d/%d]: %-50s ",m,map_num,fn);
if (map_num) { //avoid map-server crashing if there are 0 maps
- char c;
+ char c = '-';
static int lasti = -1;
static int last_time = -1;
i=m*20/maxmap;
diff --git a/src/map/map.h b/src/map/map.h
index cb8438352..ccedaacaf 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -10,7 +10,7 @@
#define PC_CLASS_BASE2 (PC_CLASS_BASE + 4001)
#define PC_CLASS_BASE3 (PC_CLASS_BASE2 + 22)
#define MAX_NPC_PER_MAP 512
-#define BLOCK_SIZE 8
+#define BLOCK_SIZE 8 // Never zero
#define AREA_SIZE battle_config.area_size
#define LOCAL_REG_NUM 16
#define LIFETIME_FLOORITEM 60