modules sollten keinen gamecode benutzen, makefiles für Visual C aktualisiert, kleine Fixes

This commit is contained in:
Enno Rehling 2001-01-31 07:59:44 +00:00
parent 0986e9162b
commit 4a2058dd65
15 changed files with 432 additions and 187 deletions

View File

@ -1,6 +1,6 @@
/* vi: set ts=2: /* vi: set ts=2:
* *
* $Id: reports.c,v 1.2 2001/01/26 16:19:40 enno Exp $ * $Id: reports.c,v 1.3 2001/01/31 07:59:42 enno Exp $
* Eressea PB(E)M host Copyright (C) 1998-2000 * Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de) * Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de) * Katja Zedel (katze@felidae.kn-bremen.de)
@ -68,7 +68,7 @@ const char *coasts[MAXDIRECTIONS] =
const char * const char *
reportpath(void) reportpath(void)
{ {
static char zText[PATH_MAX]; static char zText[MAX_PATH];
if (g_reportdir) return g_reportdir; if (g_reportdir) return g_reportdir;
return strcat(strcpy(zText, basepath()), "/reports"); return strcat(strcpy(zText, basepath()), "/reports");
} }

View File

@ -1,6 +1,6 @@
/* vi: set ts=2: /* vi: set ts=2:
* *
* $Id: arena.c,v 1.1 2001/01/27 11:32:32 enno Exp $ * $Id: arena.c,v 1.2 2001/01/31 07:59:42 enno Exp $
* Eressea PB(E)M host Copyright (C) 1998-2000 * Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de) * Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de) * Katja Zedel (katze@felidae.kn-bremen.de)
@ -25,9 +25,6 @@
/* items include */ /* items include */
#include <items/demonseye.h> #include <items/demonseye.h>
/* gamecode includes */
#include <creation.h>
/* kernel includes */ /* kernel includes */
#include <unit.h> #include <unit.h>
#include <faction.h> #include <faction.h>

View File

@ -1,6 +1,6 @@
/* vi: set ts=2: /* vi: set ts=2:
* *
* $Id: gmcmd.h,v 1.3 2001/01/30 20:26:03 enno Exp $ * $Id: gmcmd.h,v 1.4 2001/01/31 07:59:42 enno Exp $
* Eressea PB(E)M host Copyright (C) 1998-2000 * Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de) * Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de) * Katja Zedel (katze@felidae.kn-bremen.de)

View File

@ -0,0 +1,141 @@
# Microsoft Developer Studio Project File - Name="modules" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 5.00
# ** NICHT BEARBEITEN **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=modules - Win32 Debug
!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit\
NMAKE
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den\
Befehl
!MESSAGE
!MESSAGE NMAKE /f "modules-5.mak".
!MESSAGE
!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
!MESSAGE
!MESSAGE NMAKE /f "modules-5.mak" CFG="modules - Win32 Debug"
!MESSAGE
!MESSAGE Für die Konfiguration stehen zur Auswahl:
!MESSAGE
!MESSAGE "modules - Win32 Release" (basierend auf\
"Win32 (x86) Static Library")
!MESSAGE "modules - Win32 Debug" (basierend auf "Win32 (x86) Static Library")
!MESSAGE
# Begin Project
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
!IF "$(CFG)" == "modules - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ELSEIF "$(CFG)" == "modules - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "modules"
# PROP BASE Intermediate_Dir "modules"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MDd /Za /W4 /Z7 /Od /I "../util" /I "../kernel" /I "../.." /I ".." /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FR /YX"stdafx.h" /FD /c
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"Debug\modules.lib"
!ENDIF
# Begin Target
# Name "modules - Win32 Release"
# Name "modules - Win32 Debug"
# Begin Group "Header"
# PROP Default_Filter "*.h"
# Begin Source File
SOURCE=.\arena.h
# End Source File
# Begin Source File
SOURCE=.\gmcmd.h
# End Source File
# Begin Source File
SOURCE=.\museum.h
# End Source File
# Begin Source File
SOURCE=.\oceannames.h
# End Source File
# Begin Source File
SOURCE=.\score.h
# End Source File
# Begin Source File
SOURCE=.\weather.h
# End Source File
# Begin Source File
SOURCE=.\xmas2000.h
# End Source File
# End Group
# Begin Source File
SOURCE=.\arena.c
# End Source File
# Begin Source File
SOURCE=.\gmcmd.c
# End Source File
# Begin Source File
SOURCE=.\museum.c
# End Source File
# Begin Source File
SOURCE=.\oceannames.c
# End Source File
# Begin Source File
SOURCE=.\score.c
# End Source File
# Begin Source File
SOURCE=.\weather.c
# End Source File
# Begin Source File
SOURCE=.\xmas2000.c
# End Source File
# End Target
# End Project

View File

@ -1,6 +1,6 @@
/* vi: set ts=2: /* vi: set ts=2:
* *
* $Id: museum.c,v 1.1 2001/01/27 11:32:32 enno Exp $ * $Id: museum.c,v 1.2 2001/01/31 07:59:42 enno Exp $
* Eressea PB(E)M host Copyright (C) 1998-2000 * Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de) * Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de) * Katja Zedel (katze@felidae.kn-bremen.de)
@ -23,9 +23,6 @@
#include <eressea.h> #include <eressea.h>
#include "museum.h" #include "museum.h"
/* gamecode includes */
#include <creation.h>
/* kernel includes */ /* kernel includes */
#include "unit.h" #include "unit.h"
#include "region.h" #include "region.h"

View File

@ -1,6 +1,6 @@
/* vi: set ts=2: /* vi: set ts=2:
* *
* $Id: xmas2000.c,v 1.2 2001/01/28 08:01:52 enno Exp $ * $Id: xmas2000.c,v 1.3 2001/01/31 07:59:42 enno Exp $
* Eressea PB(E)M host Copyright (C) 1998-2000 * Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de) * Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de) * Katja Zedel (katze@felidae.kn-bremen.de)
@ -16,9 +16,6 @@
#include <eressea.h> #include <eressea.h>
#include "xmas2000.h" #include "xmas2000.h"
/* gamecode includes */
#include <creation.h>
/* kernel includes */ /* kernel includes */
#include <plane.h> #include <plane.h>
#include <item.h> #include <item.h>

View File

@ -0,0 +1,108 @@
# Microsoft Developer Studio Project File - Name="races" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 5.00
# ** NICHT BEARBEITEN **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=races - Win32 Debug
!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit\
NMAKE
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den\
Befehl
!MESSAGE
!MESSAGE NMAKE /f "races-5.mak".
!MESSAGE
!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
!MESSAGE
!MESSAGE NMAKE /f "races-5.mak" CFG="races - Win32 Debug"
!MESSAGE
!MESSAGE Für die Konfiguration stehen zur Auswahl:
!MESSAGE
!MESSAGE "races - Win32 Release" (basierend auf "Win32 (x86) Static Library")
!MESSAGE "races - Win32 Debug" (basierend auf "Win32 (x86) Static Library")
!MESSAGE
# Begin Project
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
!IF "$(CFG)" == "races - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ELSEIF "$(CFG)" == "races - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "races"
# PROP BASE Intermediate_Dir "races"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MDd /Za /W4 /Z7 /Od /I "../util" /I "../kernel" /I "../.." /I ".." /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FR /YX"stdafx.h" /FD /c
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"Debug\races.lib"
!ENDIF
# Begin Target
# Name "races - Win32 Release"
# Name "races - Win32 Debug"
# Begin Group "Header"
# PROP Default_Filter "*.h"
# Begin Source File
SOURCE=.\dragons.h
# End Source File
# Begin Source File
SOURCE=.\illusion.h
# End Source File
# Begin Source File
SOURCE=.\zombies.h
# End Source File
# End Group
# Begin Source File
SOURCE=.\dragons.c
# End Source File
# Begin Source File
SOURCE=.\illusion.c
# End Source File
# Begin Source File
SOURCE=.\zombies.c
# End Source File
# End Target
# End Project

View File

@ -0,0 +1,100 @@
# Microsoft Developer Studio Project File - Name="spells" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 5.00
# ** NICHT BEARBEITEN **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=spells - Win32 Debug
!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit\
NMAKE
!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den\
Befehl
!MESSAGE
!MESSAGE NMAKE /f "spells-5.mak".
!MESSAGE
!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben
!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
!MESSAGE
!MESSAGE NMAKE /f "spells-5.mak" CFG="spells - Win32 Debug"
!MESSAGE
!MESSAGE Für die Konfiguration stehen zur Auswahl:
!MESSAGE
!MESSAGE "spells - Win32 Release" (basierend auf "Win32 (x86) Static Library")
!MESSAGE "spells - Win32 Debug" (basierend auf "Win32 (x86) Static Library")
!MESSAGE
# Begin Project
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
!IF "$(CFG)" == "spells - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ELSEIF "$(CFG)" == "spells - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "spells"
# PROP BASE Intermediate_Dir "spells"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MDd /Za /W4 /Z7 /Od /I "../util" /I "../kernel" /I "../.." /I ".." /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FR /YX"stdafx.h" /FD /c
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"Debug\spells.lib"
!ENDIF
# Begin Target
# Name "spells - Win32 Release"
# Name "spells - Win32 Debug"
# Begin Group "Header"
# PROP Default_Filter "*.h"
# Begin Source File
SOURCE=.\alp.h
# End Source File
# Begin Source File
SOURCE=.\spells.h
# End Source File
# End Group
# Begin Source File
SOURCE=.\alp.c
# End Source File
# Begin Source File
SOURCE=.\spells.c
# End Source File
# End Target
# End Project

View File

@ -9,13 +9,19 @@ src/common
Bei Code im Kern des Spiels sollte man beachten, das eine Abfrage auf einen konkreten item-typ immer zu einer Abhängigkeit mit Code führt, der eigentlich nicht dem Kern zuzurechnen ist. Wenn im Kampf z.B. eine Spezialwaffe erfragt wird, dann kann man kein Eressea-Spiel erzeugen, ohne diese Waffe mit zu linken, selbst wenn man sie nicht benutzt. Besser ist es in diesem Fall, wiederverwendbare attribute oder itemtype-flags zu benutzen. Analog gilt das für alle anderen typen: rassen, gebäude, schiffe, Regionstypen, Zauber. Bei Code im Kern des Spiels sollte man beachten, das eine Abfrage auf einen konkreten item-typ immer zu einer Abhängigkeit mit Code führt, der eigentlich nicht dem Kern zuzurechnen ist. Wenn im Kampf z.B. eine Spezialwaffe erfragt wird, dann kann man kein Eressea-Spiel erzeugen, ohne diese Waffe mit zu linken, selbst wenn man sie nicht benutzt. Besser ist es in diesem Fall, wiederverwendbare attribute oder itemtype-flags zu benutzen. Analog gilt das für alle anderen typen: rassen, gebäude, schiffe, Regionstypen, Zauber.
2. Beispiele: 2. Beispiele:
battle, economy, magic (vormals newmagic), item (allerdings ohne konkret items zu enthalten), build, building, ship battle, economy, magic (vormals newmagic), item (allerdings ohne konkret items zu enthalten), build, building, ship
src/modules src/common/gamecode
1. Was ist hier drin?
Code, der nur die Auswertung und den Ablauf betrifft, aber keine statischen Tools wie z.B. den Mapper.
2. Beispiele:
Hier ist die Ökonomie drin, Zufallsereignisse, Reportgenerierung.
src/common/modules
1. Was ist hier drin? 1. Was ist hier drin?
"Pluggable" Module, wie Questen, Spezial-Planes, Events. Alles, was dem Spiel Leben einhaucht, ohne im Kern verankert zu sein. "Pluggable" Module, wie Questen, Spezial-Planes, Events. Alles, was dem Spiel Leben einhaucht, ohne im Kern verankert zu sein.
2. Beispiele: 2. Beispiele:
arena, xmas2000, museum, score (?). arena, xmas2000, museum, score (?).
3. Style 3. Style
Ein Modul sollte aus main.c heraus initialisiert werden können. Ideal ist, wenn ein Aufruf von init_<module>() genügt, um es zu aktivieren. Das sorgt z.B. beim Weihnachtsmann-Modul für die Erzeugung der Plane und der Units, der Registrierung der nötigen Items und Attribute, und mehr muß nicht getan werden. Ein Modul sollte aus main.c heraus initialisiert werden können. Ideal ist, wenn ein Aufruf von init_<module>() genügt, um es zu aktivieren. Das sorgt z.B. beim Weihnachtsmann-Modul für die Erzeugung der Plane und der Units, der Registrierung der nötigen Items und Attribute, und mehr muß nicht getan werden.
Darf keine Funktionen aus gamecode() benutzen, oder sollte selber im gamecode landen.
src/triggers src/triggers
src/items src/items
src/spells src/spells

BIN
src/doc/new-source.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -122,6 +122,51 @@ Package=<4>
Begin Project Dependency Begin Project Dependency
Project_Dep_Name items Project_Dep_Name items
End Project Dependency End Project Dependency
Begin Project Dependency
Project_Dep_Name modules
End Project Dependency
Begin Project Dependency
Project_Dep_Name races
End Project Dependency
Begin Project Dependency
Project_Dep_Name spells
End Project Dependency
}}}
###############################################################################
Project: "modules"=".\common\modules\modules-5.dsp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "races"=".\common\races\races-5.dsp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "spells"=".\common\spells\spells-5.dsp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}} }}}
############################################################################### ###############################################################################

Binary file not shown.

View File

@ -119,15 +119,19 @@ LINK32=link.exe
# PROP Default_Filter "*.h" # PROP Default_Filter "*.h"
# Begin Source File # Begin Source File
SOURCE=..\modules\arena.h SOURCE=..\common\modules\arena.h
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\modules\museum.h SOURCE=.\attributes.h
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\modules\score.h SOURCE=..\common\modules\museum.h
# End Source File
# Begin Source File
SOURCE=..\common\modules\score.h
# End Source File # End Source File
# Begin Source File # Begin Source File
@ -135,7 +139,7 @@ SOURCE=.\weapons.h
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\modules\xmas2000.h SOURCE=..\common\modules\xmas2000.h
# End Source File # End Source File
# End Group # End Group
# Begin Group "Conversion" # Begin Group "Conversion"
@ -350,7 +354,7 @@ SOURCE=..\common\items\weapons.h
# PROP Default_Filter "" # PROP Default_Filter ""
# Begin Source File # Begin Source File
SOURCE=..\modules\arena.c SOURCE=..\common\modules\arena.c
!IF "$(CFG)" == "eressea - Win32 Release" !IF "$(CFG)" == "eressea - Win32 Release"
@ -365,7 +369,7 @@ SOURCE=..\modules\arena.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\modules\museum.c SOURCE=..\common\modules\museum.c
!IF "$(CFG)" == "eressea - Win32 Release" !IF "$(CFG)" == "eressea - Win32 Release"
@ -380,7 +384,7 @@ SOURCE=..\modules\museum.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\modules\oceannames.c SOURCE=..\common\modules\oceannames.c
!IF "$(CFG)" == "eressea - Win32 Release" !IF "$(CFG)" == "eressea - Win32 Release"
@ -395,7 +399,7 @@ SOURCE=..\modules\oceannames.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\modules\score.c SOURCE=..\common\modules\score.c
!IF "$(CFG)" == "eressea - Win32 Release" !IF "$(CFG)" == "eressea - Win32 Release"
@ -410,7 +414,7 @@ SOURCE=..\modules\score.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\modules\xmas2000.c SOURCE=..\common\modules\xmas2000.c
!IF "$(CFG)" == "eressea - Win32 Release" !IF "$(CFG)" == "eressea - Win32 Release"
@ -824,6 +828,14 @@ SOURCE=..\common\triggers\unitmessage.c
# End Group # End Group
# Begin Source File # Begin Source File
SOURCE=.\attributes.c
# End Source File
# Begin Source File
SOURCE=..\common\modules\gmcmd.c
# End Source File
# Begin Source File
SOURCE=.\korrektur.c SOURCE=.\korrektur.c
# End Source File # End Source File
# Begin Source File # Begin Source File

View File

@ -1,6 +1,6 @@
/* vi: set ts=2: /* vi: set ts=2:
* *
* $Id: main.c,v 1.6 2001/01/30 23:16:17 enno Exp $ * $Id: main.c,v 1.7 2001/01/31 07:59:43 enno Exp $
* Eressea PB(E)M host Copyright (C) 1998-2000 * Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de) * Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de) * Katja Zedel (katze@felidae.kn-bremen.de)
@ -422,7 +422,7 @@ main(int argc, char *argv[])
} }
fclose(F); fclose(F);
} else { } else {
char zText[PATH_MAX]; char zText[MAX_PATH];
strcat(strcpy(zText, basepath()), "/res/spells"); strcat(strcpy(zText, basepath()), "/res/spells");
sprintf(buf, "fopen(%s): ", zText); sprintf(buf, "fopen(%s): ", zText);
perror(buf); perror(buf);
@ -450,7 +450,7 @@ main(int argc, char *argv[])
} }
fclose(F); fclose(F);
} else { } else {
char zText[PATH_MAX]; char zText[MAX_PATH];
strcat(strcpy(zText, basepath()), "/res/bonus"); strcat(strcpy(zText, basepath()), "/res/bonus");
sprintf(buf, "fopen(%s): ", zText); sprintf(buf, "fopen(%s): ", zText);
perror(buf); perror(buf);
@ -516,7 +516,7 @@ main(int argc, char *argv[])
break; break;
} }
{ {
char zText[PATH_MAX]; char zText[MAX_PATH];
strcat(strcpy(zText, basepath()), "/res/timestrings"); strcat(strcpy(zText, basepath()), "/res/timestrings");
read_datenames(zText); read_datenames(zText);
} }

View File

@ -108,148 +108,6 @@ SOURCE=..\common\triggers\triggers.h
SOURCE=..\modules\weather.h SOURCE=..\modules\weather.h
# End Source File # End Source File
# End Group # End Group
# Begin Group "Spells"
# PROP Default_Filter ""
# Begin Source File
SOURCE=..\common\spells\alp.c
!IF "$(CFG)" == "mapper - Win32 Release"
!ELSEIF "$(CFG)" == "mapper - Win32 Debug"
# PROP Intermediate_Dir "..\common\spells\Debug"
!ENDIF
# End Source File
# Begin Source File
SOURCE=..\common\spells\alp.h
!IF "$(CFG)" == "mapper - Win32 Release"
!ELSEIF "$(CFG)" == "mapper - Win32 Debug"
# PROP Intermediate_Dir "..\common\spells\Debug"
!ENDIF
# End Source File
# Begin Source File
SOURCE=..\common\spells\spells.c
!IF "$(CFG)" == "mapper - Win32 Release"
!ELSEIF "$(CFG)" == "mapper - Win32 Debug"
# PROP Intermediate_Dir "..\common\spells\Debug"
!ENDIF
# End Source File
# Begin Source File
SOURCE=..\common\spells\spells.h
!IF "$(CFG)" == "mapper - Win32 Release"
!ELSEIF "$(CFG)" == "mapper - Win32 Debug"
# PROP Intermediate_Dir "..\common\spells\Debug"
!ENDIF
# End Source File
# End Group
# Begin Group "Races"
# PROP Default_Filter ""
# Begin Source File
SOURCE=..\common\races\dragons.c
!IF "$(CFG)" == "mapper - Win32 Release"
!ELSEIF "$(CFG)" == "mapper - Win32 Debug"
# PROP Intermediate_Dir "..\common\races\Debug"
!ENDIF
# End Source File
# Begin Source File
SOURCE=..\common\races\dragons.h
!IF "$(CFG)" == "mapper - Win32 Release"
!ELSEIF "$(CFG)" == "mapper - Win32 Debug"
# PROP Intermediate_Dir "..\common\races\Debug"
!ENDIF
# End Source File
# Begin Source File
SOURCE=..\common\races\illusion.c
!IF "$(CFG)" == "mapper - Win32 Release"
!ELSEIF "$(CFG)" == "mapper - Win32 Debug"
# PROP Intermediate_Dir "..\common\races\Debug"
!ENDIF
# End Source File
# Begin Source File
SOURCE=..\common\races\illusion.h
!IF "$(CFG)" == "mapper - Win32 Release"
!ELSEIF "$(CFG)" == "mapper - Win32 Debug"
# PROP Intermediate_Dir "..\common\races\Debug"
!ENDIF
# End Source File
# Begin Source File
SOURCE=..\common\races\zombies.c
!IF "$(CFG)" == "mapper - Win32 Release"
!ELSEIF "$(CFG)" == "mapper - Win32 Debug"
# PROP Intermediate_Dir "..\common\races\Debug"
!ENDIF
# End Source File
# Begin Source File
SOURCE=..\common\races\zombies.h
!IF "$(CFG)" == "mapper - Win32 Release"
!ELSEIF "$(CFG)" == "mapper - Win32 Debug"
# PROP Intermediate_Dir "..\common\races\Debug"
!ENDIF
# End Source File
# End Group
# Begin Source File
SOURCE=..\modules\arena.c
# End Source File
# Begin Source File # Begin Source File
SOURCE=.\map_modify.c SOURCE=.\map_modify.c
@ -274,21 +132,5 @@ SOURCE=.\map_units.c
SOURCE=.\mapper.c SOURCE=.\mapper.c
# End Source File # End Source File
# Begin Source File
SOURCE=..\modules\museum.c
# End Source File
# Begin Source File
SOURCE=..\modules\oceannames.c
# End Source File
# Begin Source File
SOURCE=..\modules\score.c
# End Source File
# Begin Source File
SOURCE=..\modules\xmas2000.c
# End Source File
# End Target # End Target
# End Project # End Project