Skip to content

Commit 06ad80f

Browse files
committed
64bit version
1 parent a310ea7 commit 06ad80f

7 files changed

+13
-297
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ OBJECTS_TURBO=$(SOURCES:.cpp=.turbo.o)
1010
DOBJECTS=$(SOURCES:.cpp=.debug.o)
1111
OBJECTS64=$(SOURCES:.cpp=.64.o)
1212
EXECUTABLE=mcmap
13+
EXECUTABLE64=mcmap64
1314

1415
CFLAGSX11=-O3 -c -Wall -fomit-frame-pointer -pedantic -DWITHPNG -I/usr/local/include -I/usr/X11/include
1516
LDFLAGSX11=-O3 -lz -lpng -fomit-frame-pointer -L/usr/local/lib -L/usr/X11/lib
@@ -28,7 +29,7 @@ static: $(OBJECTS)
2829

2930
# crosscompile static version for win 64bit (using this one on windows)
3031
x64: $(OBJECTS64)
31-
x86_64-w64-mingw32-g++ $(OBJECTS64) $(LDFLAGS) -m64 -static -o $(EXECUTABLE)
32+
x86_64-w64-mingw32-g++ $(OBJECTS64) $(LDFLAGS) -m64 -static -o $(EXECUTABLE64)
3233

3334
# debug, zlib shared
3435
debug: $(DOBJECTS)

changelog.txt

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ mcmap changelog
22
Latest version is available at: http://wrim.pl/mcmap/
33
------------------------------------------------------
44

5+
2.4.2b (dec 1 2013) - Minecraft 1.7.2 compatible
6+
added:
7+
-Windows 64bit version
8+
fixed:
9+
-small fixes in loading colors
10+
511
2.4.2 (nov 27 2013) - Minecraft 1.7.2 compatible
612
fixed:
713
-ignoring empty lines in colors file

colors.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ bool loadColorsFromFile(const char *file)
349349
while (*ptr == ' ' || *ptr == '\t') {
350350
++ptr;
351351
}
352-
if (*ptr == '\0' || *ptr == '#') {
352+
if (*ptr == '\0' || *ptr == '#' || *ptr == '\12') {
353353
printf("Too few arguments for block %d, ignoring line.\n", blockid);
354354
valid = false;
355355
break;

globals.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef _GLOBALS_H_
22
#define _GLOBALS_H_
33

4-
#define VERSION "2.4.2 (compatible with Minecraft 1.7.2)"
4+
#define VERSION "2.4.2b (compatible with Minecraft 1.7.2)"
55

66
#include <stdint.h>
77
#include <cstdlib>

main.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ int main(int argc, char **argv)
268268
// ########## end of command line parsing ##########
269269
if (g_Hell || g_ServerHell || end) g_UseBiomes = false;
270270

271-
printf("mcmap " VERSION " by Zahl\n");
271+
printf("mcmap " VERSION " %dbit by Zahl\n", 8*sizeof(size_t));
272272

273273
if (sizeof(size_t) < 8 && memlimit > 1800 * uint64_t(1024 * 1024)) {
274274
memlimit = 1800 * uint64_t(1024 * 1024);
@@ -1104,7 +1104,7 @@ void printHelp(char *binary)
11041104
printf(
11051105
////////////////////////////////////////////////////////////////////////////////
11061106
"\nmcmap by Zahl - an isometric minecraft map rendering tool.\n"
1107-
"Version " VERSION "\n\n"
1107+
"Version " VERSION " %dbit\n\n"
11081108
"Usage: %s [-from X Z -to X Z] [-night] [-cave] [-noise VAL] [...] WORLDPATH\n\n"
11091109
" -from X Z sets the coordinate of the chunk to start rendering at\n"
11101110
" -to X Z sets the coordinate of the chunk to end rendering at\n"
@@ -1157,5 +1157,5 @@ void printHelp(char *binary)
11571157
" - This would render the same world but at night, and only\n"
11581158
" from chunk (-10 -10) to chunk (10 10)\n"
11591159
#endif
1160-
, binary, binary, binary);
1160+
, 8*sizeof(size_t), binary, binary, binary);
11611161
}

mcmap.sln

-20
This file was deleted.

mcmap.vcproj

-271
This file was deleted.

0 commit comments

Comments
 (0)