Menu

#1 Compile on linux 64 bit

open
nobody
None
5
2008-07-19
2008-07-19
No

There is a little patch to make this game compile on linux 64 bit :

--- snake3d/src/functions.cpp 2006-09-03 21:31:26.000000000 +0200
+++ snake3d-patch/src/functions.cpp 2008-07-19 17:45:28.000000000 +0200
@@ -107,8 +107,8 @@
pointer = end;
}

- memcpy(str, i, (int)pointer - (int)i);
- str[(int)pointer - (int)i] = 0;
+ memcpy(str, i, pointer - i);
+ str[pointer - i] = 0;

drawString\(x, y, str\);

@@ -502,14 +502,14 @@
Uint32 timer(Uint32 interval, void* value) {

//if ((int)value != gameModeValue)
- if ((int)value != p_mode)
+ if (((long)value) != p_mode)
return 0;

SDL_Event event;
SDL_UserEvent userevent;

userevent.type = SDL_USEREVENT;
- userevent.code = (int)value;
+ userevent.code = (long)value;
userevent.data1 = NULL;
userevent.data2 = NULL;

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.