From 790fbd52e4b738265a381a099019d2c9a86f9ee5 Mon Sep 17 00:00:00 2001 From: scarab Date: Mon, 14 Jul 2008 17:41:07 +0000 Subject: - win port dokonceni kompilace - nyni se postarat o instalaci a spousteni a beh :] git-svn-id: http://opensvn.csie.org/tuxanci_ng@137 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/base/main.c | 13 +++++++++++-- src/modules/modPipe.c | 2 +- src/modules/modTeleport.c | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/base/main.c b/src/base/main.c index 60a6066..cc9330f 100644 --- a/src/base/main.c +++ b/src/base/main.c @@ -113,15 +113,24 @@ int tryExistFile (const char *s) else return 0; } - +#ifdef __WIN32__ +int WINAPI WinMain( + HINSTANCE hInstance, + HINSTANCE hPrevInstance, + LPSTR lpCmdLine, + int nCmdShow +) +#else int main(int argc, char *argv[]) +#endif { listHelp = newList(); srand( (unsigned) time(NULL) ); - +#ifndef __WIN32__ my_argc = argc; my_argv = argv; +#endif /* test_space(); exit(0); diff --git a/src/modules/modPipe.c b/src/modules/modPipe.c index 4a65756..3edbc0b 100755 --- a/src/modules/modPipe.c +++ b/src/modules/modPipe.c @@ -458,7 +458,7 @@ static void proto_pipe(char *msg) if( shot->gun == GUN_LASSER ) { - transformOnlyLasser(shot); + export_fce->fce_transformOnlyLasser(shot); } } diff --git a/src/modules/modTeleport.c b/src/modules/modTeleport.c index 9d8eb70..785c1a3 100755 --- a/src/modules/modTeleport.c +++ b/src/modules/modTeleport.c @@ -537,7 +537,7 @@ static void proto_teleportshot(char *msg) if( shot->gun == GUN_LASSER ) { - transformOnlyLasser(shot); + export_fce->fce_transformOnlyLasser(shot); } } -- cgit v1.2.3