* remove internal forward declarations of functions already declared in the header

* use proper constness:
  * make some functions take arguments of `const char*` rather than just `char*` (also modified some functions' return values to return `const char*` where appropiate)
 * modify rank retrieval functions to use a central array instead; currently ranklimits (i.e. the amount of kills required to promote) is hardcoded in switch statements, as is the case with the names of those ranks
 * `make -C po update-po`

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1409 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-04-09 22:09:27 +00:00
parent b3e17f6064
commit cc17299668
23 changed files with 320 additions and 396 deletions

View File

@ -217,7 +217,7 @@ BOOL strresLoadFixedID(STR_RES *psRes, STR_ID *psID, UDWORD numID)
/* Return the ID number for an ID string */ /* Return the ID number for an ID string */
BOOL strresGetIDNum(STR_RES *psRes, char *pIDStr, UDWORD *pIDNum) BOOL strresGetIDNum(STR_RES *psRes, const char *pIDStr, UDWORD *pIDNum)
{ {
STR_ID *psID; STR_ID *psID;

View File

@ -71,7 +71,7 @@ extern void strresReleaseIDStrings(STR_RES *psRes);
extern BOOL strresLoadFixedID(STR_RES *psRes, STR_ID *psID, UDWORD numID); extern BOOL strresLoadFixedID(STR_RES *psRes, STR_ID *psID, UDWORD numID);
/* Return the ID number for an ID string */ /* Return the ID number for an ID string */
extern BOOL strresGetIDNum(STR_RES *psRes, char *pIDStr, UDWORD *pIDNum); extern BOOL strresGetIDNum(STR_RES *psRes, const char *pIDStr, UDWORD *pIDNum);
/* Return the stored ID string that matches the string passed in */ /* Return the stored ID string that matches the string passed in */
extern BOOL strresGetIDString(STR_RES *psRes, char *pIDStr, char **ppStoredID); extern BOOL strresGetIDString(STR_RES *psRes, char *pIDStr, char **ppStoredID);

View File

@ -40,7 +40,7 @@ typedef struct _w_bargraph
UWORD iValue; // Current value UWORD iValue; // Current value
UBYTE majorCol; // Colour for the major bar UBYTE majorCol; // Colour for the major bar
UBYTE minorCol; // Colour for the minor bar UBYTE minorCol; // Colour for the minor bar
char *pTip; // The tool tip for the graph const char *pTip; // The tool tip for the graph
} W_BARGRAPH; } W_BARGRAPH;
/* Create a barGraph widget data structure */ /* Create a barGraph widget data structure */

View File

@ -581,7 +581,7 @@ void editBoxRun(W_EDITBOX *psWidget, W_CONTEXT *psContext)
/* Set the current string for the edit box */ /* Set the current string for the edit box */
void editBoxSetString(W_EDITBOX *psWidget, char *pText) void editBoxSetString(W_EDITBOX *psWidget, const char *pText)
{ {
ASSERT( psWidget != NULL, ASSERT( psWidget != NULL,
"editBoxSetString: Invalid edit box pointer" ); "editBoxSetString: Invalid edit box pointer" );

View File

@ -65,7 +65,7 @@ extern void editBoxFree(W_EDITBOX *psWidget);
extern void editBoxInitialise(W_EDITBOX *psWidget); extern void editBoxInitialise(W_EDITBOX *psWidget);
/* Set the current string for the edit box */ /* Set the current string for the edit box */
extern void editBoxSetString(W_EDITBOX *psWidget, char *pText); extern void editBoxSetString(W_EDITBOX *psWidget, const char *pText);
/* Respond to loss of focus */ /* Respond to loss of focus */
extern void editBoxFocusLost(W_EDITBOX *psWidget); extern void editBoxFocusLost(W_EDITBOX *psWidget);

View File

@ -118,7 +118,7 @@ typedef struct _w_clickform
FORM_BASE; FORM_BASE;
UDWORD state; // Button state of the form UDWORD state; // Button state of the form
char *pTip; // Tip for the form const char *pTip; // Tip for the form
SWORD HilightAudioID; // Audio ID for form clicked sound SWORD HilightAudioID; // Audio ID for form clicked sound
SWORD ClickedAudioID; // Audio ID for form hilighted sound SWORD ClickedAudioID; // Audio ID for form hilighted sound
WIDGET_AUDIOCALLBACK AudioCallback; // Pointer to audio callback function WIDGET_AUDIOCALLBACK AudioCallback; // Pointer to audio callback function

View File

@ -39,7 +39,7 @@ typedef struct _w_label
UDWORD state; // The current button state UDWORD state; // The current button state
char aText[WIDG_MAXSTR]; // Text on the label char aText[WIDG_MAXSTR]; // Text on the label
int FontID; int FontID;
char *pTip; // The tool tip for the button const char *pTip; // The tool tip for the button
} W_LABEL; } W_LABEL;
/* Create a button widget data structure */ /* Create a button widget data structure */

View File

@ -1292,7 +1292,7 @@ char *widgGetString(W_SCREEN *psScreen, UDWORD id)
/* Set the text in a widget */ /* Set the text in a widget */
void widgSetString(W_SCREEN *psScreen, UDWORD id, char *pText) void widgSetString(W_SCREEN *psScreen, UDWORD id, const char *pText)
{ {
WIDGET *psWidget; WIDGET *psWidget;

View File

@ -170,7 +170,7 @@ typedef struct _w_forminit
UWORD tabMinorGap; // The space between tabs UWORD tabMinorGap; // The space between tabs
UWORD numMajor; // Number of major tabs UWORD numMajor; // Number of major tabs
UWORD aNumMinors[WFORM_MAXMAJOR]; // Number of minor tabs for each major UWORD aNumMinors[WFORM_MAXMAJOR]; // Number of minor tabs for each major
char *pTip; // Tool tip for the form itself const char *pTip; // Tool tip for the form itself
char *apMajorTips[WFORM_MAXMAJOR]; // Tool tips for the major tabs char *apMajorTips[WFORM_MAXMAJOR]; // Tool tips for the major tabs
char *apMinorTips[WFORM_MAXMAJOR][WFORM_MAXMINOR]; char *apMinorTips[WFORM_MAXMAJOR][WFORM_MAXMINOR];
// Tool tips for the minor tabs // Tool tips for the minor tabs
@ -184,8 +184,8 @@ typedef struct _w_labinit
/* The basic init entries */ /* The basic init entries */
WINIT_BASE; WINIT_BASE;
char *pText; // label text const char *pText; // label text
char *pTip; // Tool tip for the label. const char *pTip; // Tool tip for the label.
int FontID; // ID of the IVIS font to use for this widget. int FontID; // ID of the IVIS font to use for this widget.
} W_LABINIT; } W_LABINIT;
@ -230,7 +230,7 @@ typedef struct _w_barinit
UWORD iRange; // Maximum range UWORD iRange; // Maximum range
W_COLOURDEF sCol; // Bar colour W_COLOURDEF sCol; // Bar colour
W_COLOURDEF sMinorCol; // Minor bar colour W_COLOURDEF sMinorCol; // Minor bar colour
char *pTip; // Tool tip text const char *pTip; // Tool tip text
} W_BARINIT; } W_BARINIT;
@ -327,7 +327,7 @@ extern void widgReveal(W_SCREEN *psScreen, UDWORD id);
extern char *widgGetString(W_SCREEN *psScreen, UDWORD id); extern char *widgGetString(W_SCREEN *psScreen, UDWORD id);
/* Set the text in a widget */ /* Set the text in a widget */
extern void widgSetString(W_SCREEN *psScreen, UDWORD id, char *pText); extern void widgSetString(W_SCREEN *psScreen, UDWORD id, const char *pText);
/* Set the current tabs for a tab form */ /* Set the current tabs for a tab form */
extern void widgSetTabs(W_SCREEN *psScreen, UDWORD id, UWORD major, UWORD minor); extern void widgSetTabs(W_SCREEN *psScreen, UDWORD id, UWORD major, UWORD minor);

122
po/da.po
View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: da\n" "Project-Id-Version: da\n"
"Report-Msgid-Bugs-To: warzone-dev@gna.org\n" "Report-Msgid-Bugs-To: warzone-dev@gna.org\n"
"POT-Creation-Date: 2007-04-09 16:43+0200\n" "POT-Creation-Date: 2007-04-10 00:05+0200\n"
"PO-Revision-Date: 2007-04-03 22:35+0200\n" "PO-Revision-Date: 2007-04-03 22:35+0200\n"
"Last-Translator: Christian Vest Hansen <karmazilla@gmail.com>\n" "Last-Translator: Christian Vest Hansen <karmazilla@gmail.com>\n"
"Language-Team: Dansk <en@li.org>\n" "Language-Team: Dansk <en@li.org>\n"
@ -16,7 +16,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n" "X-Generator: KBabel 1.11.4\n"
#: src/multiplay.c:2042 src/droid.c:5088 #: src/multiplay.c:2042 src/droid.c:5035
msgid "Green" msgid "Green"
msgstr "Grøn" msgstr "Grøn"
@ -199,67 +199,67 @@ msgstr "Tilbage til hovedmenu"
msgid "Continue Game" msgid "Continue Game"
msgstr "Fortsæt" msgstr "Fortsæt"
#: src/mission.c:3419 src/mission.c:3555 src/ingameop.c:417 src/frontend.c:540 #: src/mission.c:3419 src/mission.c:3555 src/ingameop.c:417 src/frontend.c:516
msgid "Load Saved Game" msgid "Load Saved Game"
msgstr "Indlæs gemt spil" msgstr "Indlæs gemt spil"
#: src/droid.c:320 src/droid.c:376 #: src/droid.c:313 src/droid.c:369
msgid "Unit Lost!" msgid "Unit Lost!"
msgstr "Enhed tabt!" msgstr "Enhed tabt!"
#: src/droid.c:2494 #: src/droid.c:2487
msgid "Structure Restored" msgid "Structure Restored"
msgstr "Bygning restoreret" msgstr "Bygning restoreret"
#: src/droid.c:4741 #: src/droid.c:4734
#, c-format #, c-format
msgid "Group %d Selected - %d Unit(s)" msgid "Group %d Selected - %d Unit(s)"
msgstr "Gruppe %d valgt - %d Enheder" msgstr "Gruppe %d valgt - %d Enheder"
#: src/droid.c:4753 #: src/droid.c:4746
#, c-format #, c-format
msgid "%d Unit(s) Assigned to Group %d" msgid "%d Unit(s) Assigned to Group %d"
msgstr "%d Enheder tildelt gruppe %d" msgstr "%d Enheder tildelt gruppe %d"
#: src/droid.c:4765 #: src/droid.c:4758
#, c-format #, c-format
msgid "Centered on Group %d - %d Unit(s)" msgid "Centered on Group %d - %d Unit(s)"
msgstr "Fokuseret på gruppe %d - %d Enheder" msgstr "Fokuseret på gruppe %d - %d Enheder"
#: src/droid.c:4769 #: src/droid.c:4762
#, c-format #, c-format
msgid "Aligning with Group %d - %d Unit(s)" msgid "Aligning with Group %d - %d Unit(s)"
msgstr "Korigerede med gruppe %d - %d Enheder" msgstr "Korigerede med gruppe %d - %d Enheder"
#: src/droid.c:5086 #: src/droid.c:5034
msgid "Rookie" msgid "Rookie"
msgstr "Menig" msgstr "Menig"
#: src/droid.c:5090 #: src/droid.c:5036
msgid "Trained" msgid "Trained"
msgstr "Sasjant" msgstr "Sasjant"
#: src/droid.c:5092 #: src/droid.c:5037
msgid "Regular" msgid "Regular"
msgstr "Oversasjant" msgstr "Oversasjant"
#: src/droid.c:5094 #: src/droid.c:5038
msgid "Professional" msgid "Professional"
msgstr "Løjtnant" msgstr "Løjtnant"
#: src/droid.c:5096 #: src/droid.c:5039
msgid "Veteran" msgid "Veteran"
msgstr "Kaptajn" msgstr "Kaptajn"
#: src/droid.c:5098 #: src/droid.c:5040
msgid "Elite" msgid "Elite"
msgstr "Major" msgstr "Major"
#: src/droid.c:5100 #: src/droid.c:5041
msgid "Special" msgid "Special"
msgstr "Oberst" msgstr "Oberst"
#: src/droid.c:5102 #: src/droid.c:5042
msgid "Hero" msgid "Hero"
msgstr "General" msgstr "General"
@ -291,7 +291,7 @@ msgstr "INDSTILLINGER"
msgid "Game" msgid "Game"
msgstr "Spil" msgstr "Spil"
#: src/multiint.c:927 src/frontend.c:786 #: src/multiint.c:927 src/frontend.c:762
msgid "Fog" msgid "Fog"
msgstr "Tåge" msgstr "Tåge"
@ -515,19 +515,19 @@ msgstr "Fortsæt spil"
msgid "Quit" msgid "Quit"
msgstr "Afbryd" msgstr "Afbryd"
#: src/ingameop.c:143 src/frontend.c:964 #: src/ingameop.c:143 src/frontend.c:940
msgid "Voice Volume" msgid "Voice Volume"
msgstr "Stemme volume" msgstr "Stemme volume"
#: src/ingameop.c:148 src/frontend.c:968 #: src/ingameop.c:148 src/frontend.c:944
msgid "FX Volume" msgid "FX Volume"
msgstr "Effekt volume" msgstr "Effekt volume"
#: src/ingameop.c:153 src/frontend.c:972 #: src/ingameop.c:153 src/frontend.c:948
msgid "Music Volume" msgid "Music Volume"
msgstr "Musik volume" msgstr "Musik volume"
#: src/ingameop.c:265 src/frontend.c:326 #: src/ingameop.c:265 src/frontend.c:302
msgid "Options" msgid "Options"
msgstr "Indstillinger" msgstr "Indstillinger"
@ -643,154 +643,154 @@ msgstr "Elektronik"
msgid "Command Turrets" msgid "Command Turrets"
msgstr "Kommandotårn" msgstr "Kommandotårn"
#: src/frontend.c:318 #: src/frontend.c:294
msgid "Single Player Campaign" msgid "Single Player Campaign"
msgstr "Solokampange" msgstr "Solokampange"
#: src/frontend.c:321 src/frontend.c:323 #: src/frontend.c:297 src/frontend.c:299
#, fuzzy #, fuzzy
msgid "Multi Player Game" msgid "Multi Player Game"
msgstr "Flerbruger spil" msgstr "Flerbruger spil"
#: src/frontend.c:325 src/frontend.c:385 #: src/frontend.c:301 src/frontend.c:361
msgid "Tutorial" msgid "Tutorial"
msgstr "Tutorial" msgstr "Tutorial"
#: src/frontend.c:328 #: src/frontend.c:304
msgid "Quit Game" msgid "Quit Game"
msgstr "Afslut spil" msgstr "Afslut spil"
#: src/frontend.c:330 #: src/frontend.c:306
msgid "MAIN MENU" msgid "MAIN MENU"
msgstr "HOVED MENU" msgstr "HOVED MENU"
#: src/frontend.c:386 #: src/frontend.c:362
msgid "Fast Play" msgid "Fast Play"
msgstr "Hurtgigt spil" msgstr "Hurtgigt spil"
#: src/frontend.c:387 #: src/frontend.c:363
msgid "TUTORIALS" msgid "TUTORIALS"
msgstr "TUTORIALS" msgstr "TUTORIALS"
#: src/frontend.c:446 #: src/frontend.c:422
msgid "Load Campaign" msgid "Load Campaign"
msgstr "Indlæs kampange" msgstr "Indlæs kampange"
#: src/frontend.c:447 #: src/frontend.c:423
msgid "New Campaign" msgid "New Campaign"
msgstr "Ny kampange" msgstr "Ny kampange"
#: src/frontend.c:449 #: src/frontend.c:425
msgid "SINGLE PLAYER" msgid "SINGLE PLAYER"
msgstr "SOLO SPILLER" msgstr "SOLO SPILLER"
#: src/frontend.c:583 #: src/frontend.c:559
msgid "MULTI PLAYER" msgid "MULTI PLAYER"
msgstr "FLER SPILLER" msgstr "FLER SPILLER"
#: src/frontend.c:585 #: src/frontend.c:561
msgid "Host Game" msgid "Host Game"
msgstr "Udbyd spil" msgstr "Udbyd spil"
#: src/frontend.c:586 #: src/frontend.c:562
msgid "Join Game" msgid "Join Game"
msgstr "Forbind til vært" msgstr "Forbind til vært"
#: src/frontend.c:588 #: src/frontend.c:564
msgid "Force Editor" msgid "Force Editor"
msgstr "Redigér styrke" msgstr "Redigér styrke"
#: src/frontend.c:589 #: src/frontend.c:565
msgid "One Player Skirmish" msgid "One Player Skirmish"
msgstr "Spil mod computeren" msgstr "Spil mod computeren"
#: src/frontend.c:683 src/frontend.c:979 src/frontend.c:1088 #: src/frontend.c:659 src/frontend.c:955 src/frontend.c:1064
msgid "GAME OPTIONS" msgid "GAME OPTIONS"
msgstr "SPIL INDSTILLINGER" msgstr "SPIL INDSTILLINGER"
#: src/frontend.c:684 #: src/frontend.c:660
msgid "Game Options" msgid "Game Options"
msgstr "Spil indstillinger" msgstr "Spil indstillinger"
#: src/frontend.c:685 #: src/frontend.c:661
msgid "Graphics Options" msgid "Graphics Options"
msgstr "Grafik indstillinger" msgstr "Grafik indstillinger"
#: src/frontend.c:686 #: src/frontend.c:662
msgid "Audio Options" msgid "Audio Options"
msgstr "Lyd indstillinger" msgstr "Lyd indstillinger"
#: src/frontend.c:687 #: src/frontend.c:663
msgid "Key Mappings" msgid "Key Mappings"
msgstr "Tastatur indstillinger" msgstr "Tastatur indstillinger"
#: src/frontend.c:762 #: src/frontend.c:738
msgid "Reverse Mouse" msgid "Reverse Mouse"
msgstr "Omvendt mus" msgstr "Omvendt mus"
#: src/frontend.c:765 src/frontend.c:777 src/frontend.c:830 src/frontend.c:865 #: src/frontend.c:741 src/frontend.c:753 src/frontend.c:806 src/frontend.c:841
#: src/frontend.c:879 src/frontend.c:915 #: src/frontend.c:855 src/frontend.c:891
msgid "On" msgid "On"
msgstr "Til" msgstr "Til"
#: src/frontend.c:769 src/frontend.c:781 src/frontend.c:826 src/frontend.c:835 #: src/frontend.c:745 src/frontend.c:757 src/frontend.c:802 src/frontend.c:811
#: src/frontend.c:860 src/frontend.c:874 src/frontend.c:910 #: src/frontend.c:836 src/frontend.c:850 src/frontend.c:886
msgid "Off" msgid "Off"
msgstr "Fra" msgstr "Fra"
#: src/frontend.c:774 #: src/frontend.c:750
msgid "Screen Shake" msgid "Screen Shake"
msgstr "Ryst skærm" msgstr "Ryst skærm"
#: src/frontend.c:789 src/frontend.c:897 #: src/frontend.c:765 src/frontend.c:873
msgid "Mist" msgid "Mist"
msgstr "Afstandståge" msgstr "Afstandståge"
#: src/frontend.c:793 src/frontend.c:890 #: src/frontend.c:769 src/frontend.c:866
msgid "Fog Of War" msgid "Fog Of War"
msgstr "Krigståge" msgstr "Krigståge"
#: src/frontend.c:798 #: src/frontend.c:774
msgid "Video Playback" msgid "Video Playback"
msgstr "" msgstr ""
#: src/frontend.c:801 src/frontend.c:934 #: src/frontend.c:777 src/frontend.c:910
msgid "Full" msgid "Full"
msgstr "Fuldskærm" msgstr "Fuldskærm"
#: src/frontend.c:805 src/frontend.c:924 #: src/frontend.c:781 src/frontend.c:900
msgid "Windowed" msgid "Windowed"
msgstr "Vindue" msgstr "Vindue"
#: src/frontend.c:808 src/frontend.c:929 #: src/frontend.c:784 src/frontend.c:905
msgid "Minimal" msgid "Minimal"
msgstr "Minimal" msgstr "Minimal"
#: src/frontend.c:815 src/frontend.c:819 #: src/frontend.c:791 src/frontend.c:795
msgid "Subtitles" msgid "Subtitles"
msgstr "Undertekster" msgstr "Undertekster"
#: src/frontend.c:1050 #: src/frontend.c:1026
msgid "Difficulty" msgid "Difficulty"
msgstr "Sværhedsgræd" msgstr "Sværhedsgræd"
#: src/frontend.c:1054 src/frontend.c:1139 #: src/frontend.c:1030 src/frontend.c:1115
msgid "Easy" msgid "Easy"
msgstr "Begynder" msgstr "Begynder"
#: src/frontend.c:1057 src/frontend.c:1131 #: src/frontend.c:1033 src/frontend.c:1107
msgid "Normal" msgid "Normal"
msgstr "Øvet" msgstr "Øvet"
#: src/frontend.c:1061 src/frontend.c:1135 #: src/frontend.c:1037 src/frontend.c:1111
msgid "Hard" msgid "Hard"
msgstr "Svær" msgstr "Svær"
#: src/frontend.c:1066 #: src/frontend.c:1042
msgid "Scroll Speed" msgid "Scroll Speed"
msgstr "Kamera hastighed" msgstr "Kamera hastighed"
#: src/frontend.c:1082 #: src/frontend.c:1058
msgid "Unit Colour" msgid "Unit Colour"
msgstr "Holdfarve" msgstr "Holdfarve"

122
po/de.po
View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: de\n" "Project-Id-Version: de\n"
"Report-Msgid-Bugs-To: warzone-dev@gna.org\n" "Report-Msgid-Bugs-To: warzone-dev@gna.org\n"
"POT-Creation-Date: 2007-04-09 16:43+0200\n" "POT-Creation-Date: 2007-04-10 00:05+0200\n"
"PO-Revision-Date: 2007-04-05 21:02+0200\n" "PO-Revision-Date: 2007-04-05 21:02+0200\n"
"Last-Translator: Dennis Schridde <devurandom@gna.org>\n" "Last-Translator: Dennis Schridde <devurandom@gna.org>\n"
"Language-Team: Deutsch\n" "Language-Team: Deutsch\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Generator: KBabel 1.11.4\n" "X-Generator: KBabel 1.11.4\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: src/multiplay.c:2042 src/droid.c:5088 #: src/multiplay.c:2042 src/droid.c:5035
msgid "Green" msgid "Green"
msgstr "Grün" msgstr "Grün"
@ -200,67 +200,67 @@ msgstr "Zurück zum Hauptmenu"
msgid "Continue Game" msgid "Continue Game"
msgstr "Spiel fortsetzen" msgstr "Spiel fortsetzen"
#: src/mission.c:3419 src/mission.c:3555 src/ingameop.c:417 src/frontend.c:540 #: src/mission.c:3419 src/mission.c:3555 src/ingameop.c:417 src/frontend.c:516
msgid "Load Saved Game" msgid "Load Saved Game"
msgstr "Speicherstand laden" msgstr "Speicherstand laden"
#: src/droid.c:320 src/droid.c:376 #: src/droid.c:313 src/droid.c:369
msgid "Unit Lost!" msgid "Unit Lost!"
msgstr "Einheit verloren!" msgstr "Einheit verloren!"
#: src/droid.c:2494 #: src/droid.c:2487
msgid "Structure Restored" msgid "Structure Restored"
msgstr "" msgstr ""
#: src/droid.c:4741 #: src/droid.c:4734
#, c-format #, c-format
msgid "Group %d Selected - %d Unit(s)" msgid "Group %d Selected - %d Unit(s)"
msgstr "Gruppe %d ausgewählt - %d Einheiten(s)" msgstr "Gruppe %d ausgewählt - %d Einheiten(s)"
#: src/droid.c:4753 #: src/droid.c:4746
#, c-format #, c-format
msgid "%d Unit(s) Assigned to Group %d" msgid "%d Unit(s) Assigned to Group %d"
msgstr "" msgstr ""
#: src/droid.c:4765 #: src/droid.c:4758
#, c-format #, c-format
msgid "Centered on Group %d - %d Unit(s)" msgid "Centered on Group %d - %d Unit(s)"
msgstr "" msgstr ""
#: src/droid.c:4769 #: src/droid.c:4762
#, c-format #, c-format
msgid "Aligning with Group %d - %d Unit(s)" msgid "Aligning with Group %d - %d Unit(s)"
msgstr "" msgstr ""
#: src/droid.c:5086 #: src/droid.c:5034
msgid "Rookie" msgid "Rookie"
msgstr "" msgstr ""
#: src/droid.c:5090 #: src/droid.c:5036
msgid "Trained" msgid "Trained"
msgstr "" msgstr ""
#: src/droid.c:5092 #: src/droid.c:5037
msgid "Regular" msgid "Regular"
msgstr "" msgstr ""
#: src/droid.c:5094 #: src/droid.c:5038
msgid "Professional" msgid "Professional"
msgstr "" msgstr ""
#: src/droid.c:5096 #: src/droid.c:5039
msgid "Veteran" msgid "Veteran"
msgstr "Veteran" msgstr "Veteran"
#: src/droid.c:5098 #: src/droid.c:5040
msgid "Elite" msgid "Elite"
msgstr "Elite" msgstr "Elite"
#: src/droid.c:5100 #: src/droid.c:5041
msgid "Special" msgid "Special"
msgstr "" msgstr ""
#: src/droid.c:5102 #: src/droid.c:5042
msgid "Hero" msgid "Hero"
msgstr "Help" msgstr "Help"
@ -292,7 +292,7 @@ msgstr ""
msgid "Game" msgid "Game"
msgstr "Spiel" msgstr "Spiel"
#: src/multiint.c:927 src/frontend.c:786 #: src/multiint.c:927 src/frontend.c:762
msgid "Fog" msgid "Fog"
msgstr "Nebel" msgstr "Nebel"
@ -516,19 +516,19 @@ msgstr "Spiel fortsetzen"
msgid "Quit" msgid "Quit"
msgstr "Beenden" msgstr "Beenden"
#: src/ingameop.c:143 src/frontend.c:964 #: src/ingameop.c:143 src/frontend.c:940
msgid "Voice Volume" msgid "Voice Volume"
msgstr "Sprachlautstärke" msgstr "Sprachlautstärke"
#: src/ingameop.c:148 src/frontend.c:968 #: src/ingameop.c:148 src/frontend.c:944
msgid "FX Volume" msgid "FX Volume"
msgstr "Effektlautstärke" msgstr "Effektlautstärke"
#: src/ingameop.c:153 src/frontend.c:972 #: src/ingameop.c:153 src/frontend.c:948
msgid "Music Volume" msgid "Music Volume"
msgstr "Musiklautstärke" msgstr "Musiklautstärke"
#: src/ingameop.c:265 src/frontend.c:326 #: src/ingameop.c:265 src/frontend.c:302
msgid "Options" msgid "Options"
msgstr "Optionen" msgstr "Optionen"
@ -643,153 +643,153 @@ msgstr ""
msgid "Command Turrets" msgid "Command Turrets"
msgstr "Kommando Türme" msgstr "Kommando Türme"
#: src/frontend.c:318 #: src/frontend.c:294
msgid "Single Player Campaign" msgid "Single Player Campaign"
msgstr "Einzelspieler Kampagne" msgstr "Einzelspieler Kampagne"
#: src/frontend.c:321 src/frontend.c:323 #: src/frontend.c:297 src/frontend.c:299
msgid "Multi Player Game" msgid "Multi Player Game"
msgstr "Mehrspieler Spiel" msgstr "Mehrspieler Spiel"
#: src/frontend.c:325 src/frontend.c:385 #: src/frontend.c:301 src/frontend.c:361
msgid "Tutorial" msgid "Tutorial"
msgstr "Tutorial" msgstr "Tutorial"
#: src/frontend.c:328 #: src/frontend.c:304
msgid "Quit Game" msgid "Quit Game"
msgstr "Spiel Beenden" msgstr "Spiel Beenden"
#: src/frontend.c:330 #: src/frontend.c:306
msgid "MAIN MENU" msgid "MAIN MENU"
msgstr "Hauptmenu" msgstr "Hauptmenu"
#: src/frontend.c:386 #: src/frontend.c:362
msgid "Fast Play" msgid "Fast Play"
msgstr "Schnelles Spiel" msgstr "Schnelles Spiel"
#: src/frontend.c:387 #: src/frontend.c:363
msgid "TUTORIALS" msgid "TUTORIALS"
msgstr "Tutorials" msgstr "Tutorials"
#: src/frontend.c:446 #: src/frontend.c:422
msgid "Load Campaign" msgid "Load Campaign"
msgstr "Kampagne laden" msgstr "Kampagne laden"
#: src/frontend.c:447 #: src/frontend.c:423
msgid "New Campaign" msgid "New Campaign"
msgstr "Neue Kampagne" msgstr "Neue Kampagne"
#: src/frontend.c:449 #: src/frontend.c:425
msgid "SINGLE PLAYER" msgid "SINGLE PLAYER"
msgstr "Einzelspieler" msgstr "Einzelspieler"
#: src/frontend.c:583 #: src/frontend.c:559
msgid "MULTI PLAYER" msgid "MULTI PLAYER"
msgstr "Mehrspieler" msgstr "Mehrspieler"
#: src/frontend.c:585 #: src/frontend.c:561
msgid "Host Game" msgid "Host Game"
msgstr "Spiel hosten" msgstr "Spiel hosten"
#: src/frontend.c:586 #: src/frontend.c:562
msgid "Join Game" msgid "Join Game"
msgstr "Spiel beitreten" msgstr "Spiel beitreten"
#: src/frontend.c:588 #: src/frontend.c:564
msgid "Force Editor" msgid "Force Editor"
msgstr "" msgstr ""
#: src/frontend.c:589 #: src/frontend.c:565
msgid "One Player Skirmish" msgid "One Player Skirmish"
msgstr "Einzelspieler Geplänkel" msgstr "Einzelspieler Geplänkel"
#: src/frontend.c:683 src/frontend.c:979 src/frontend.c:1088 #: src/frontend.c:659 src/frontend.c:955 src/frontend.c:1064
msgid "GAME OPTIONS" msgid "GAME OPTIONS"
msgstr "Spieloptionen" msgstr "Spieloptionen"
#: src/frontend.c:684 #: src/frontend.c:660
msgid "Game Options" msgid "Game Options"
msgstr "Spieloptionen" msgstr "Spieloptionen"
#: src/frontend.c:685 #: src/frontend.c:661
msgid "Graphics Options" msgid "Graphics Options"
msgstr "Grafikeinstellungen" msgstr "Grafikeinstellungen"
#: src/frontend.c:686 #: src/frontend.c:662
msgid "Audio Options" msgid "Audio Options"
msgstr "Audioeinstellungen" msgstr "Audioeinstellungen"
#: src/frontend.c:687 #: src/frontend.c:663
msgid "Key Mappings" msgid "Key Mappings"
msgstr "Tastenzuordnung" msgstr "Tastenzuordnung"
#: src/frontend.c:762 #: src/frontend.c:738
msgid "Reverse Mouse" msgid "Reverse Mouse"
msgstr "Maus umkehren" msgstr "Maus umkehren"
#: src/frontend.c:765 src/frontend.c:777 src/frontend.c:830 src/frontend.c:865 #: src/frontend.c:741 src/frontend.c:753 src/frontend.c:806 src/frontend.c:841
#: src/frontend.c:879 src/frontend.c:915 #: src/frontend.c:855 src/frontend.c:891
msgid "On" msgid "On"
msgstr "An" msgstr "An"
#: src/frontend.c:769 src/frontend.c:781 src/frontend.c:826 src/frontend.c:835 #: src/frontend.c:745 src/frontend.c:757 src/frontend.c:802 src/frontend.c:811
#: src/frontend.c:860 src/frontend.c:874 src/frontend.c:910 #: src/frontend.c:836 src/frontend.c:850 src/frontend.c:886
msgid "Off" msgid "Off"
msgstr "Aus" msgstr "Aus"
#: src/frontend.c:774 #: src/frontend.c:750
msgid "Screen Shake" msgid "Screen Shake"
msgstr "Bildschirm-wackeln" msgstr "Bildschirm-wackeln"
#: src/frontend.c:789 src/frontend.c:897 #: src/frontend.c:765 src/frontend.c:873
msgid "Mist" msgid "Mist"
msgstr "Dunst" msgstr "Dunst"
#: src/frontend.c:793 src/frontend.c:890 #: src/frontend.c:769 src/frontend.c:866
msgid "Fog Of War" msgid "Fog Of War"
msgstr "Nebel des Krieges" msgstr "Nebel des Krieges"
#: src/frontend.c:798 #: src/frontend.c:774
msgid "Video Playback" msgid "Video Playback"
msgstr "Videowiedergabe" msgstr "Videowiedergabe"
#: src/frontend.c:801 src/frontend.c:934 #: src/frontend.c:777 src/frontend.c:910
msgid "Full" msgid "Full"
msgstr "Vollbild" msgstr "Vollbild"
#: src/frontend.c:805 src/frontend.c:924 #: src/frontend.c:781 src/frontend.c:900
msgid "Windowed" msgid "Windowed"
msgstr "Fenster" msgstr "Fenster"
#: src/frontend.c:808 src/frontend.c:929 #: src/frontend.c:784 src/frontend.c:905
msgid "Minimal" msgid "Minimal"
msgstr "Minimiert" msgstr "Minimiert"
#: src/frontend.c:815 src/frontend.c:819 #: src/frontend.c:791 src/frontend.c:795
msgid "Subtitles" msgid "Subtitles"
msgstr "Untertitel" msgstr "Untertitel"
#: src/frontend.c:1050 #: src/frontend.c:1026
msgid "Difficulty" msgid "Difficulty"
msgstr "Schwierigkeit" msgstr "Schwierigkeit"
#: src/frontend.c:1054 src/frontend.c:1139 #: src/frontend.c:1030 src/frontend.c:1115
msgid "Easy" msgid "Easy"
msgstr "Einfach" msgstr "Einfach"
#: src/frontend.c:1057 src/frontend.c:1131 #: src/frontend.c:1033 src/frontend.c:1107
msgid "Normal" msgid "Normal"
msgstr "Normal" msgstr "Normal"
#: src/frontend.c:1061 src/frontend.c:1135 #: src/frontend.c:1037 src/frontend.c:1111
msgid "Hard" msgid "Hard"
msgstr "Schwer" msgstr "Schwer"
#: src/frontend.c:1066 #: src/frontend.c:1042
msgid "Scroll Speed" msgid "Scroll Speed"
msgstr "Scrollgeschwindigkeit" msgstr "Scrollgeschwindigkeit"
#: src/frontend.c:1082 #: src/frontend.c:1058
msgid "Unit Colour" msgid "Unit Colour"
msgstr "Einheitenfarbe" msgstr "Einheitenfarbe"

122
po/nb.po
View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Warzone 2100 TRUNK\n" "Project-Id-Version: Warzone 2100 TRUNK\n"
"Report-Msgid-Bugs-To: warzone-dev@gna.org\n" "Report-Msgid-Bugs-To: warzone-dev@gna.org\n"
"POT-Creation-Date: 2007-04-09 16:43+0200\n" "POT-Creation-Date: 2007-04-10 00:05+0200\n"
"PO-Revision-Date: 2007-03-24 17:49+0100\n" "PO-Revision-Date: 2007-03-24 17:49+0100\n"
"Last-Translator: Automatically generated\n" "Last-Translator: Automatically generated\n"
"Language-Team: none\n" "Language-Team: none\n"
@ -16,7 +16,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: src/multiplay.c:2042 src/droid.c:5088 #: src/multiplay.c:2042 src/droid.c:5035
msgid "Green" msgid "Green"
msgstr "" msgstr ""
@ -199,67 +199,67 @@ msgstr "Tilbake til hovedmeny"
msgid "Continue Game" msgid "Continue Game"
msgstr "Fortsett spill" msgstr "Fortsett spill"
#: src/mission.c:3419 src/mission.c:3555 src/ingameop.c:417 src/frontend.c:540 #: src/mission.c:3419 src/mission.c:3555 src/ingameop.c:417 src/frontend.c:516
msgid "Load Saved Game" msgid "Load Saved Game"
msgstr "" msgstr ""
#: src/droid.c:320 src/droid.c:376 #: src/droid.c:313 src/droid.c:369
msgid "Unit Lost!" msgid "Unit Lost!"
msgstr "" msgstr ""
#: src/droid.c:2494 #: src/droid.c:2487
msgid "Structure Restored" msgid "Structure Restored"
msgstr "" msgstr ""
#: src/droid.c:4741 #: src/droid.c:4734
#, c-format #, c-format
msgid "Group %d Selected - %d Unit(s)" msgid "Group %d Selected - %d Unit(s)"
msgstr "" msgstr ""
#: src/droid.c:4753 #: src/droid.c:4746
#, c-format #, c-format
msgid "%d Unit(s) Assigned to Group %d" msgid "%d Unit(s) Assigned to Group %d"
msgstr "" msgstr ""
#: src/droid.c:4765 #: src/droid.c:4758
#, c-format #, c-format
msgid "Centered on Group %d - %d Unit(s)" msgid "Centered on Group %d - %d Unit(s)"
msgstr "" msgstr ""
#: src/droid.c:4769 #: src/droid.c:4762
#, c-format #, c-format
msgid "Aligning with Group %d - %d Unit(s)" msgid "Aligning with Group %d - %d Unit(s)"
msgstr "" msgstr ""
#: src/droid.c:5086 #: src/droid.c:5034
msgid "Rookie" msgid "Rookie"
msgstr "" msgstr ""
#: src/droid.c:5090 #: src/droid.c:5036
msgid "Trained" msgid "Trained"
msgstr "" msgstr ""
#: src/droid.c:5092 #: src/droid.c:5037
msgid "Regular" msgid "Regular"
msgstr "" msgstr ""
#: src/droid.c:5094 #: src/droid.c:5038
msgid "Professional" msgid "Professional"
msgstr "" msgstr ""
#: src/droid.c:5096 #: src/droid.c:5039
msgid "Veteran" msgid "Veteran"
msgstr "" msgstr ""
#: src/droid.c:5098 #: src/droid.c:5040
msgid "Elite" msgid "Elite"
msgstr "" msgstr ""
#: src/droid.c:5100 #: src/droid.c:5041
msgid "Special" msgid "Special"
msgstr "" msgstr ""
#: src/droid.c:5102 #: src/droid.c:5042
msgid "Hero" msgid "Hero"
msgstr "" msgstr ""
@ -291,7 +291,7 @@ msgstr "ALTERNATIVER"
msgid "Game" msgid "Game"
msgstr "" msgstr ""
#: src/multiint.c:927 src/frontend.c:786 #: src/multiint.c:927 src/frontend.c:762
msgid "Fog" msgid "Fog"
msgstr "" msgstr ""
@ -517,19 +517,19 @@ msgstr "Nullstill hastighet"
msgid "Quit" msgid "Quit"
msgstr "Avslutt" msgstr "Avslutt"
#: src/ingameop.c:143 src/frontend.c:964 #: src/ingameop.c:143 src/frontend.c:940
msgid "Voice Volume" msgid "Voice Volume"
msgstr "Stemmevolum" msgstr "Stemmevolum"
#: src/ingameop.c:148 src/frontend.c:968 #: src/ingameop.c:148 src/frontend.c:944
msgid "FX Volume" msgid "FX Volume"
msgstr "Lydeffektvolum" msgstr "Lydeffektvolum"
#: src/ingameop.c:153 src/frontend.c:972 #: src/ingameop.c:153 src/frontend.c:948
msgid "Music Volume" msgid "Music Volume"
msgstr "Musikkvolum" msgstr "Musikkvolum"
#: src/ingameop.c:265 src/frontend.c:326 #: src/ingameop.c:265 src/frontend.c:302
msgid "Options" msgid "Options"
msgstr "Alternativer" msgstr "Alternativer"
@ -644,153 +644,153 @@ msgstr ""
msgid "Command Turrets" msgid "Command Turrets"
msgstr "" msgstr ""
#: src/frontend.c:318 #: src/frontend.c:294
msgid "Single Player Campaign" msgid "Single Player Campaign"
msgstr "Solospill" msgstr "Solospill"
#: src/frontend.c:321 src/frontend.c:323 #: src/frontend.c:297 src/frontend.c:299
msgid "Multi Player Game" msgid "Multi Player Game"
msgstr "Samspill" msgstr "Samspill"
#: src/frontend.c:325 src/frontend.c:385 #: src/frontend.c:301 src/frontend.c:361
msgid "Tutorial" msgid "Tutorial"
msgstr "Introduksjon" msgstr "Introduksjon"
#: src/frontend.c:328 #: src/frontend.c:304
msgid "Quit Game" msgid "Quit Game"
msgstr "Avslutt" msgstr "Avslutt"
#: src/frontend.c:330 #: src/frontend.c:306
msgid "MAIN MENU" msgid "MAIN MENU"
msgstr "HOVEDMENY" msgstr "HOVEDMENY"
#: src/frontend.c:386 #: src/frontend.c:362
msgid "Fast Play" msgid "Fast Play"
msgstr "" msgstr ""
#: src/frontend.c:387 #: src/frontend.c:363
msgid "TUTORIALS" msgid "TUTORIALS"
msgstr "INTRODUKSJON" msgstr "INTRODUKSJON"
#: src/frontend.c:446 #: src/frontend.c:422
msgid "Load Campaign" msgid "Load Campaign"
msgstr "" msgstr ""
#: src/frontend.c:447 #: src/frontend.c:423
msgid "New Campaign" msgid "New Campaign"
msgstr "" msgstr ""
#: src/frontend.c:449 #: src/frontend.c:425
msgid "SINGLE PLAYER" msgid "SINGLE PLAYER"
msgstr "SOLOSPILL" msgstr "SOLOSPILL"
#: src/frontend.c:583 #: src/frontend.c:559
msgid "MULTI PLAYER" msgid "MULTI PLAYER"
msgstr "SAMSPILL" msgstr "SAMSPILL"
#: src/frontend.c:585 #: src/frontend.c:561
msgid "Host Game" msgid "Host Game"
msgstr "" msgstr ""
#: src/frontend.c:586 #: src/frontend.c:562
msgid "Join Game" msgid "Join Game"
msgstr "Bli med i spill" msgstr "Bli med i spill"
#: src/frontend.c:588 #: src/frontend.c:564
msgid "Force Editor" msgid "Force Editor"
msgstr "" msgstr ""
#: src/frontend.c:589 #: src/frontend.c:565
msgid "One Player Skirmish" msgid "One Player Skirmish"
msgstr "" msgstr ""
#: src/frontend.c:683 src/frontend.c:979 src/frontend.c:1088 #: src/frontend.c:659 src/frontend.c:955 src/frontend.c:1064
msgid "GAME OPTIONS" msgid "GAME OPTIONS"
msgstr "SPILLALTERNATIVER" msgstr "SPILLALTERNATIVER"
#: src/frontend.c:684 #: src/frontend.c:660
msgid "Game Options" msgid "Game Options"
msgstr "Spillalternativer" msgstr "Spillalternativer"
#: src/frontend.c:685 #: src/frontend.c:661
msgid "Graphics Options" msgid "Graphics Options"
msgstr "Grafikkalternativer" msgstr "Grafikkalternativer"
#: src/frontend.c:686 #: src/frontend.c:662
msgid "Audio Options" msgid "Audio Options"
msgstr "Lydalternativer" msgstr "Lydalternativer"
#: src/frontend.c:687 #: src/frontend.c:663
msgid "Key Mappings" msgid "Key Mappings"
msgstr "" msgstr ""
#: src/frontend.c:762 #: src/frontend.c:738
msgid "Reverse Mouse" msgid "Reverse Mouse"
msgstr "" msgstr ""
#: src/frontend.c:765 src/frontend.c:777 src/frontend.c:830 src/frontend.c:865 #: src/frontend.c:741 src/frontend.c:753 src/frontend.c:806 src/frontend.c:841
#: src/frontend.c:879 src/frontend.c:915 #: src/frontend.c:855 src/frontend.c:891
msgid "On" msgid "On"
msgstr "På" msgstr "På"
#: src/frontend.c:769 src/frontend.c:781 src/frontend.c:826 src/frontend.c:835 #: src/frontend.c:745 src/frontend.c:757 src/frontend.c:802 src/frontend.c:811
#: src/frontend.c:860 src/frontend.c:874 src/frontend.c:910 #: src/frontend.c:836 src/frontend.c:850 src/frontend.c:886
msgid "Off" msgid "Off"
msgstr "Av" msgstr "Av"
#: src/frontend.c:774 #: src/frontend.c:750
msgid "Screen Shake" msgid "Screen Shake"
msgstr "" msgstr ""
#: src/frontend.c:789 src/frontend.c:897 #: src/frontend.c:765 src/frontend.c:873
msgid "Mist" msgid "Mist"
msgstr "" msgstr ""
#: src/frontend.c:793 src/frontend.c:890 #: src/frontend.c:769 src/frontend.c:866
msgid "Fog Of War" msgid "Fog Of War"
msgstr "" msgstr ""
#: src/frontend.c:798 #: src/frontend.c:774
msgid "Video Playback" msgid "Video Playback"
msgstr "" msgstr ""
#: src/frontend.c:801 src/frontend.c:934 #: src/frontend.c:777 src/frontend.c:910
msgid "Full" msgid "Full"
msgstr "" msgstr ""
#: src/frontend.c:805 src/frontend.c:924 #: src/frontend.c:781 src/frontend.c:900
msgid "Windowed" msgid "Windowed"
msgstr "" msgstr ""
#: src/frontend.c:808 src/frontend.c:929 #: src/frontend.c:784 src/frontend.c:905
msgid "Minimal" msgid "Minimal"
msgstr "" msgstr ""
#: src/frontend.c:815 src/frontend.c:819 #: src/frontend.c:791 src/frontend.c:795
msgid "Subtitles" msgid "Subtitles"
msgstr "" msgstr ""
#: src/frontend.c:1050 #: src/frontend.c:1026
msgid "Difficulty" msgid "Difficulty"
msgstr "Vanskelighetsgrad" msgstr "Vanskelighetsgrad"
#: src/frontend.c:1054 src/frontend.c:1139 #: src/frontend.c:1030 src/frontend.c:1115
msgid "Easy" msgid "Easy"
msgstr "Enkel" msgstr "Enkel"
#: src/frontend.c:1057 src/frontend.c:1131 #: src/frontend.c:1033 src/frontend.c:1107
msgid "Normal" msgid "Normal"
msgstr "Normal" msgstr "Normal"
#: src/frontend.c:1061 src/frontend.c:1135 #: src/frontend.c:1037 src/frontend.c:1111
msgid "Hard" msgid "Hard"
msgstr "Tøff" msgstr "Tøff"
#: src/frontend.c:1066 #: src/frontend.c:1042
msgid "Scroll Speed" msgid "Scroll Speed"
msgstr "" msgstr ""
#: src/frontend.c:1082 #: src/frontend.c:1058
msgid "Unit Colour" msgid "Unit Colour"
msgstr "" msgstr ""

122
po/nl.po
View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Warzone 2100 TRUNK\n" "Project-Id-Version: Warzone 2100 TRUNK\n"
"Report-Msgid-Bugs-To: warzone-dev@gna.org\n" "Report-Msgid-Bugs-To: warzone-dev@gna.org\n"
"POT-Creation-Date: 2007-04-09 16:43+0200\n" "POT-Creation-Date: 2007-04-10 00:05+0200\n"
"PO-Revision-Date: 2007-04-06 02:33+0100\n" "PO-Revision-Date: 2007-04-06 02:33+0100\n"
"Last-Translator: Giel van Schijndel <me@mortis.eu>\n" "Last-Translator: Giel van Schijndel <me@mortis.eu>\n"
"Language-Team: Dutch <vertaling@vrijschrift.org>\n" "Language-Team: Dutch <vertaling@vrijschrift.org>\n"
@ -16,7 +16,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: src/multiplay.c:2042 src/droid.c:5088 #: src/multiplay.c:2042 src/droid.c:5035
msgid "Green" msgid "Green"
msgstr "Groen" msgstr "Groen"
@ -202,70 +202,70 @@ msgstr "Afsluiten Naar Hoofdmenu"
msgid "Continue Game" msgid "Continue Game"
msgstr "Ga door met Spel" msgstr "Ga door met Spel"
#: src/mission.c:3419 src/mission.c:3555 src/ingameop.c:417 src/frontend.c:540 #: src/mission.c:3419 src/mission.c:3555 src/ingameop.c:417 src/frontend.c:516
#, fuzzy #, fuzzy
msgid "Load Saved Game" msgid "Load Saved Game"
msgstr "Laden Opgeslagen Spel" msgstr "Laden Opgeslagen Spel"
#: src/droid.c:320 src/droid.c:376 #: src/droid.c:313 src/droid.c:369
#, fuzzy #, fuzzy
msgid "Unit Lost!" msgid "Unit Lost!"
msgstr "Eenheid verloren!" msgstr "Eenheid verloren!"
#: src/droid.c:2494 #: src/droid.c:2487
msgid "Structure Restored" msgid "Structure Restored"
msgstr "" msgstr ""
#: src/droid.c:4741 #: src/droid.c:4734
#, c-format #, c-format
msgid "Group %d Selected - %d Unit(s)" msgid "Group %d Selected - %d Unit(s)"
msgstr "Groep %d geselecteerd - %d eenhe(e)d(en)" msgstr "Groep %d geselecteerd - %d eenhe(e)d(en)"
#: src/droid.c:4753 #: src/droid.c:4746
#, c-format #, c-format
msgid "%d Unit(s) Assigned to Group %d" msgid "%d Unit(s) Assigned to Group %d"
msgstr "" msgstr ""
#: src/droid.c:4765 #: src/droid.c:4758
#, c-format #, c-format
msgid "Centered on Group %d - %d Unit(s)" msgid "Centered on Group %d - %d Unit(s)"
msgstr "" msgstr ""
#: src/droid.c:4769 #: src/droid.c:4762
#, c-format #, c-format
msgid "Aligning with Group %d - %d Unit(s)" msgid "Aligning with Group %d - %d Unit(s)"
msgstr "" msgstr ""
#: src/droid.c:5086 #: src/droid.c:5034
msgid "Rookie" msgid "Rookie"
msgstr "Groentje" msgstr "Groentje"
#: src/droid.c:5090 #: src/droid.c:5036
msgid "Trained" msgid "Trained"
msgstr "" msgstr ""
#: src/droid.c:5092 #: src/droid.c:5037
msgid "Regular" msgid "Regular"
msgstr "" msgstr ""
#: src/droid.c:5094 #: src/droid.c:5038
msgid "Professional" msgid "Professional"
msgstr "" msgstr ""
#: src/droid.c:5096 #: src/droid.c:5039
msgid "Veteran" msgid "Veteran"
msgstr "Veteraan" msgstr "Veteraan"
#: src/droid.c:5098 #: src/droid.c:5040
msgid "Elite" msgid "Elite"
msgstr "Elite" msgstr "Elite"
#: src/droid.c:5100 #: src/droid.c:5041
#, fuzzy #, fuzzy
msgid "Special" msgid "Special"
msgstr "Speciaal" msgstr "Speciaal"
#: src/droid.c:5102 #: src/droid.c:5042
msgid "Hero" msgid "Hero"
msgstr "Held" msgstr "Held"
@ -299,7 +299,7 @@ msgstr "INSTELLINGEN"
msgid "Game" msgid "Game"
msgstr "Spel" msgstr "Spel"
#: src/multiint.c:927 src/frontend.c:786 #: src/multiint.c:927 src/frontend.c:762
msgid "Fog" msgid "Fog"
msgstr "Mist" msgstr "Mist"
@ -523,19 +523,19 @@ msgstr "Hervat Spel"
msgid "Quit" msgid "Quit"
msgstr "Afsluiten" msgstr "Afsluiten"
#: src/ingameop.c:143 src/frontend.c:964 #: src/ingameop.c:143 src/frontend.c:940
msgid "Voice Volume" msgid "Voice Volume"
msgstr "Stem Volume" msgstr "Stem Volume"
#: src/ingameop.c:148 src/frontend.c:968 #: src/ingameop.c:148 src/frontend.c:944
msgid "FX Volume" msgid "FX Volume"
msgstr "Effecten Volume" msgstr "Effecten Volume"
#: src/ingameop.c:153 src/frontend.c:972 #: src/ingameop.c:153 src/frontend.c:948
msgid "Music Volume" msgid "Music Volume"
msgstr "Muziek Volume" msgstr "Muziek Volume"
#: src/ingameop.c:265 src/frontend.c:326 #: src/ingameop.c:265 src/frontend.c:302
msgid "Options" msgid "Options"
msgstr "Instellingen" msgstr "Instellingen"
@ -652,153 +652,153 @@ msgstr ""
msgid "Command Turrets" msgid "Command Turrets"
msgstr "" msgstr ""
#: src/frontend.c:318 #: src/frontend.c:294
msgid "Single Player Campaign" msgid "Single Player Campaign"
msgstr "" msgstr ""
#: src/frontend.c:321 src/frontend.c:323 #: src/frontend.c:297 src/frontend.c:299
msgid "Multi Player Game" msgid "Multi Player Game"
msgstr "" msgstr ""
#: src/frontend.c:325 src/frontend.c:385 #: src/frontend.c:301 src/frontend.c:361
msgid "Tutorial" msgid "Tutorial"
msgstr "" msgstr ""
#: src/frontend.c:328 #: src/frontend.c:304
msgid "Quit Game" msgid "Quit Game"
msgstr "Spel Afsluiten" msgstr "Spel Afsluiten"
#: src/frontend.c:330 #: src/frontend.c:306
msgid "MAIN MENU" msgid "MAIN MENU"
msgstr "HOOFDMENU" msgstr "HOOFDMENU"
#: src/frontend.c:386 #: src/frontend.c:362
msgid "Fast Play" msgid "Fast Play"
msgstr "Snel Spelen" msgstr "Snel Spelen"
#: src/frontend.c:387 #: src/frontend.c:363
msgid "TUTORIALS" msgid "TUTORIALS"
msgstr "" msgstr ""
#: src/frontend.c:446 #: src/frontend.c:422
msgid "Load Campaign" msgid "Load Campaign"
msgstr "" msgstr ""
#: src/frontend.c:447 #: src/frontend.c:423
msgid "New Campaign" msgid "New Campaign"
msgstr "" msgstr ""
#: src/frontend.c:449 #: src/frontend.c:425
msgid "SINGLE PLAYER" msgid "SINGLE PLAYER"
msgstr "" msgstr ""
#: src/frontend.c:583 #: src/frontend.c:559
msgid "MULTI PLAYER" msgid "MULTI PLAYER"
msgstr "" msgstr ""
#: src/frontend.c:585 #: src/frontend.c:561
msgid "Host Game" msgid "Host Game"
msgstr "" msgstr ""
#: src/frontend.c:586 #: src/frontend.c:562
msgid "Join Game" msgid "Join Game"
msgstr "" msgstr ""
#: src/frontend.c:588 #: src/frontend.c:564
msgid "Force Editor" msgid "Force Editor"
msgstr "Strijdkrachten Bewerker" msgstr "Strijdkrachten Bewerker"
#: src/frontend.c:589 #: src/frontend.c:565
msgid "One Player Skirmish" msgid "One Player Skirmish"
msgstr "" msgstr ""
#: src/frontend.c:683 src/frontend.c:979 src/frontend.c:1088 #: src/frontend.c:659 src/frontend.c:955 src/frontend.c:1064
msgid "GAME OPTIONS" msgid "GAME OPTIONS"
msgstr "SPEL INSTELLINGEN" msgstr "SPEL INSTELLINGEN"
#: src/frontend.c:684 #: src/frontend.c:660
msgid "Game Options" msgid "Game Options"
msgstr "Spel Instellingen" msgstr "Spel Instellingen"
#: src/frontend.c:685 #: src/frontend.c:661
msgid "Graphics Options" msgid "Graphics Options"
msgstr "Grafische Instellingen" msgstr "Grafische Instellingen"
#: src/frontend.c:686 #: src/frontend.c:662
msgid "Audio Options" msgid "Audio Options"
msgstr "Geluid Instellingen" msgstr "Geluid Instellingen"
#: src/frontend.c:687 #: src/frontend.c:663
msgid "Key Mappings" msgid "Key Mappings"
msgstr "" msgstr ""
#: src/frontend.c:762 #: src/frontend.c:738
msgid "Reverse Mouse" msgid "Reverse Mouse"
msgstr "Muisknoppen Omwisselen" msgstr "Muisknoppen Omwisselen"
#: src/frontend.c:765 src/frontend.c:777 src/frontend.c:830 src/frontend.c:865 #: src/frontend.c:741 src/frontend.c:753 src/frontend.c:806 src/frontend.c:841
#: src/frontend.c:879 src/frontend.c:915 #: src/frontend.c:855 src/frontend.c:891
msgid "On" msgid "On"
msgstr "Aan" msgstr "Aan"
#: src/frontend.c:769 src/frontend.c:781 src/frontend.c:826 src/frontend.c:835 #: src/frontend.c:745 src/frontend.c:757 src/frontend.c:802 src/frontend.c:811
#: src/frontend.c:860 src/frontend.c:874 src/frontend.c:910 #: src/frontend.c:836 src/frontend.c:850 src/frontend.c:886
msgid "Off" msgid "Off"
msgstr "Uit" msgstr "Uit"
#: src/frontend.c:774 #: src/frontend.c:750
msgid "Screen Shake" msgid "Screen Shake"
msgstr "" msgstr ""
#: src/frontend.c:789 src/frontend.c:897 #: src/frontend.c:765 src/frontend.c:873
msgid "Mist" msgid "Mist"
msgstr "Nevel" msgstr "Nevel"
#: src/frontend.c:793 src/frontend.c:890 #: src/frontend.c:769 src/frontend.c:866
msgid "Fog Of War" msgid "Fog Of War"
msgstr "" msgstr ""
#: src/frontend.c:798 #: src/frontend.c:774
msgid "Video Playback" msgid "Video Playback"
msgstr "" msgstr ""
#: src/frontend.c:801 src/frontend.c:934 #: src/frontend.c:777 src/frontend.c:910
msgid "Full" msgid "Full"
msgstr "" msgstr ""
#: src/frontend.c:805 src/frontend.c:924 #: src/frontend.c:781 src/frontend.c:900
msgid "Windowed" msgid "Windowed"
msgstr "" msgstr ""
#: src/frontend.c:808 src/frontend.c:929 #: src/frontend.c:784 src/frontend.c:905
msgid "Minimal" msgid "Minimal"
msgstr "" msgstr ""
#: src/frontend.c:815 src/frontend.c:819 #: src/frontend.c:791 src/frontend.c:795
msgid "Subtitles" msgid "Subtitles"
msgstr "Ondertitels" msgstr "Ondertitels"
#: src/frontend.c:1050 #: src/frontend.c:1026
msgid "Difficulty" msgid "Difficulty"
msgstr "Moeilijkheidsgraad" msgstr "Moeilijkheidsgraad"
#: src/frontend.c:1054 src/frontend.c:1139 #: src/frontend.c:1030 src/frontend.c:1115
msgid "Easy" msgid "Easy"
msgstr "Makkelijk" msgstr "Makkelijk"
#: src/frontend.c:1057 src/frontend.c:1131 #: src/frontend.c:1033 src/frontend.c:1107
msgid "Normal" msgid "Normal"
msgstr "Normaal" msgstr "Normaal"
#: src/frontend.c:1061 src/frontend.c:1135 #: src/frontend.c:1037 src/frontend.c:1111
msgid "Hard" msgid "Hard"
msgstr "Moeilijk" msgstr "Moeilijk"
#: src/frontend.c:1066 #: src/frontend.c:1042
msgid "Scroll Speed" msgid "Scroll Speed"
msgstr "" msgstr ""
#: src/frontend.c:1082 #: src/frontend.c:1058
msgid "Unit Colour" msgid "Unit Colour"
msgstr "" msgstr ""

View File

@ -1537,7 +1537,7 @@ intChooseSystemStats( DROID_TEMPLATE *psTemplate )
/* set SHOWTEMPLATENAME to 0 to show template components in edit box */ /* set SHOWTEMPLATENAME to 0 to show template components in edit box */
#define SHOWTEMPLATENAME 0 #define SHOWTEMPLATENAME 0
static char *GetDefaultTemplateName(DROID_TEMPLATE *psTemplate) static const char *GetDefaultTemplateName(DROID_TEMPLATE *psTemplate)
{ {
COMP_BASE_STATS *psStats; COMP_BASE_STATS *psStats;
char *pStr; char *pStr;

View File

@ -38,7 +38,7 @@
#include "visibility.h" #include "visibility.h"
#include "map.h" #include "map.h"
#include "drive.h" #include "drive.h"
//#include "droid.h" #include "droid.h"
//#include "objmem.h" //#include "objmem.h"
#include "hci.h" #include "hci.h"
#include "lib/gamelib/gtime.h" #include "lib/gamelib/gtime.h"
@ -134,15 +134,8 @@ DROID *psLastDroidHit;
void groupConsoleInformOfSelection( UDWORD groupNumber ); void groupConsoleInformOfSelection( UDWORD groupNumber );
void groupConsoleInformOfCreation( UDWORD groupNumber ); void groupConsoleInformOfCreation( UDWORD groupNumber );
void groupConsoleInformOfCentering( UDWORD groupNumber ); void groupConsoleInformOfCentering( UDWORD groupNumber );
void setSelectedGroup(UDWORD groupNumber);
void assignDroidsToGroup(UDWORD playerNumber, UDWORD groupNumber);
void droidUpdateRecoil( DROID *psDroid ); void droidUpdateRecoil( DROID *psDroid );
BOOL activateGroup(UDWORD playerNumber, UDWORD groupNumber);
BOOL activateGroupAndMove(UDWORD playerNumber, UDWORD groupNumber);
void droidSetBits(DROID_TEMPLATE *pTemplate,DROID *psDroid);
BOOL pickATile2(UDWORD *x, UDWORD *y, UDWORD numIterations);
UDWORD getBound(UDWORD level); UDWORD getBound(UDWORD level);
char *getDroidNameForRank(UDWORD rank);
/*time to move to a new location (when building foundation) */ /*time to move to a new location (when building foundation) */
@ -2762,9 +2755,9 @@ BOOL droidUpdateDroidRepair(DROID *psRepairDroid)
} }
/* load the Droid stats for the components from the Access database */ /* load the Droid stats for the components from the Access database */
BOOL loadDroidTemplates(char *pDroidData, UDWORD bufferSize) BOOL loadDroidTemplates(const char *pDroidData, UDWORD bufferSize)
{ {
char *pStartDroidData; const char *pStartDroidData;
int cnt; int cnt;
UDWORD NumDroids = 0, i, player; UDWORD NumDroids = 0, i, player;
char componentName[MAX_NAME_SIZE]; char componentName[MAX_NAME_SIZE];
@ -3315,9 +3308,9 @@ DROID_TYPE droidTemplateType(DROID_TEMPLATE *psTemplate)
//Load the weapons assigned to Droids in the Access database //Load the weapons assigned to Droids in the Access database
//Watermelon:reads 3 WeaponName for now? //Watermelon:reads 3 WeaponName for now?
BOOL loadDroidWeapons(char *pWeaponData, UDWORD bufferSize) BOOL loadDroidWeapons(const char *pWeaponData, UDWORD bufferSize)
{ {
char *pStartWeaponData; const char *pStartWeaponData;
UDWORD NumWeapons = 0, i, player; UDWORD NumWeapons = 0, i, player;
char WeaponName[MAX_NAME_SIZE], TemplateName[MAX_NAME_SIZE]; char WeaponName[MAX_NAME_SIZE], TemplateName[MAX_NAME_SIZE];
//Watermelon:TODO:fix this temp naming one day,WeaponName[DROID_MAXWEAPS][MAX_NAME_SIZE] causes stack corruption //Watermelon:TODO:fix this temp naming one day,WeaponName[DROID_MAXWEAPS][MAX_NAME_SIZE] causes stack corruption
@ -5030,107 +5023,64 @@ BOOL selectDroidByID(UDWORD id, UDWORD player)
return FALSE; return FALSE;
} }
typedef struct
{
UDWORD kills; // required minimum amount of kills to reach this rank
const char* name; // name of this rank
} RANK_MAP;
static const RANK_MAP arrRank[] =
{
{0, _("Rookie")},
{4, _("Green")},
{8, _("Trained")},
{16, _("Regular")},
{32, _("Professional")},
{64, _("Veteran")},
{128, _("Elite")},
{256, _("Special")},
{512, _("Hero")},
};
UDWORD getDroidLevel(DROID *psDroid) UDWORD getDroidLevel(DROID *psDroid)
{ {
UDWORD i;
static const UDWORD end = sizeof(arrRank) / sizeof(RANK_MAP);
if (psDroid->droidType == DROID_COMMAND || if (psDroid->droidType == DROID_COMMAND ||
psDroid->droidType == DROID_SENSOR) psDroid->droidType == DROID_SENSOR)
{ {
return cmdDroidGetLevel(psDroid); return cmdDroidGetLevel(psDroid);
} }
else if(psDroid->numKills <4)
// Search through the array of ranks until one is found
// which requires more kills than the droid has.
// Then fall back to the previous rank.
for (i = 1; i != end; ++i)
{ {
return(0); if (psDroid->numKills < arrRank[i].kills)
} {
else if(psDroid->numKills<8) return i - 1;
{ }
return(1);
}
else if(psDroid->numKills<16)
{
return(2);
}
else if(psDroid->numKills<32)
{
return(3);
}
else if(psDroid->numKills<64)
{
return(4);
}
else if(psDroid->numKills<128)
{
return(5);
}
else if(psDroid->numKills<256)
{
return(6);
}
else if(psDroid->numKills<512)
{
return(7);
}
else
{
return(8);
} }
// If the criteria of the last rank are met, then select the last one
return end - 1;
} }
char *getDroidNameForRank(UDWORD rank) const char *getDroidNameForRank(UDWORD rank)
{ {
ASSERT( rank < (sizeof(arrRank) / sizeof(RANK_MAP)),
switch(rank) "getDroidNameForRank: given rank number (%d) out of bounds, we only have %d ranks\n", rank, (sizeof(arrRank) / sizeof(RANK_MAP)) );
{
case 0: return arrRank[rank].name;
return _("Rookie");
case 1:
return _("Green");
case 2:
return _("Trained");
case 3:
return _("Regular");
case 4:
return _("Professional");
case 5:
return _("Veteran");
case 6:
return _("Elite");
case 7:
return _("Special");
case 8:
return _("Hero");
}
return NULL;
} }
char *getDroidLevelName(DROID *psDroid) const char *getDroidLevelName(DROID *psDroid)
{ {
return(getDroidNameForRank(getDroidLevel(psDroid))); return(getDroidNameForRank(getDroidLevel(psDroid)));
/*
switch (getDroidLevel(psDroid))
{
case 0:
return _("Rookie");
case 1:
return _("Green");
case 2:
return _("Trained");
case 3:
return _("Regular");
case 4:
return _("Professional");
case 5:
return _("Veteran");
case 6:
return _("Elite");
case 7:
return _("Special");
case 8:
return _("Hero");
}
*/
} }
UDWORD getNumDroidsForLevel(UDWORD level) UDWORD getNumDroidsForLevel(UDWORD level)

View File

@ -90,8 +90,8 @@ extern void removeDroidBase(DROID *psDel);
// this only does anything if the naybor list is out of date // this only does anything if the naybor list is out of date
extern void droidGetNaybors(DROID *psDroid); extern void droidGetNaybors(DROID *psDroid);
extern BOOL loadDroidTemplates(char *pDroidData, UDWORD bufferSize); extern BOOL loadDroidTemplates(const char *pDroidData, UDWORD bufferSize);
extern BOOL loadDroidWeapons(char *pWeaponData, UDWORD bufferSize); extern BOOL loadDroidWeapons(const char *pWeaponData, UDWORD bufferSize);
/*initialise the template build and power points */ /*initialise the template build and power points */
extern void initTemplatePoints(void); extern void initTemplatePoints(void);
@ -244,7 +244,7 @@ extern BOOL selectDroidByID(UDWORD id, UDWORD player);
/* Droid experience stuff */ /* Droid experience stuff */
extern UDWORD getDroidLevel(DROID *psDroid); extern UDWORD getDroidLevel(DROID *psDroid);
char *getDroidLevelName(DROID *psDroid); extern const char *getDroidLevelName(DROID *psDroid);
// Get a droid's name. // Get a droid's name.
extern char *droidGetName(DROID *psDroid); extern char *droidGetName(DROID *psDroid);
@ -378,7 +378,7 @@ direct fire. Also check numVTOLattackRuns for the weapon is not zero - return
TRUE if valid weapon*/ TRUE if valid weapon*/
extern BOOL checkValidWeaponForProp(DROID_TEMPLATE *psTemplate); extern BOOL checkValidWeaponForProp(DROID_TEMPLATE *psTemplate);
extern char *getDroidNameForRank(UDWORD rank); extern const char *getDroidNameForRank(UDWORD rank);
/*called when a Template is deleted in the Design screen*/ /*called when a Template is deleted in the Design screen*/
extern void deleteTemplateFromProduction(DROID_TEMPLATE *psTemplate, UBYTE player); extern void deleteTemplateFromProduction(DROID_TEMPLATE *psTemplate, UBYTE player);

View File

@ -74,46 +74,22 @@ BOOL bUsingSlider = FALSE;
// //////////////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////////////////
// Function Definitions // Function Definitions
void processFrontendSnap (BOOL bHideCursor);
void changeTitleMode (tMode mode);
BOOL startTitleMenu (void); BOOL startTitleMenu (void);
BOOL runTitleMenu (void);
void startSinglePlayerMenu (void); void startSinglePlayerMenu (void);
BOOL runSinglePlayerMenu (void);
//BOOL runDemoMenu (void);
//BOOL startDemoMenu (void);
BOOL startTutorialMenu (void); BOOL startTutorialMenu (void);
BOOL runTutorialMenu (void);
BOOL startMultiPlayerMenu (void); BOOL startMultiPlayerMenu (void);
BOOL runMultiPlayerMenu (void);
BOOL startOptionsMenu (void); BOOL startOptionsMenu (void);
BOOL runOptionsMenu (void);
BOOL startGameOptionsMenu (void); BOOL startGameOptionsMenu (void);
BOOL runGameOptionsMenu (void);
BOOL startGameOptions2Menu (void); BOOL startGameOptions2Menu (void);
BOOL runGameOptions2Menu (void);
BOOL startGameOptions3Menu (void); BOOL startGameOptions3Menu (void);
BOOL runGameOptions3Menu (void);
//BOOL startVideoOptionsMenu (void);
//BOOL runVideoOptionsMenu (void);
//BOOL startGraphicsOptionsMenu(void);
//BOOL runGraphicsptionsMenu (void);
void addTopForm (void);
void removeTopForm (void); void removeTopForm (void);
void addBottomForm (void);
void removeBottomForm (void); void removeBottomForm (void);
void addBackdrop (void);
void removeBackdrop (void); void removeBackdrop (void);
void addTextButton (UDWORD id, UDWORD PosX, UDWORD PosY, char *txt,BOOL bAlignLeft,BOOL bGrey);
void addText (int FontID,UDWORD FormID,UDWORD id, UDWORD PosX, UDWORD PosY, char *txt, UDWORD attachID,BOOL *State); void addText (int FontID,UDWORD FormID,UDWORD id, UDWORD PosX, UDWORD PosY, char *txt, UDWORD attachID,BOOL *State);
void addSideText (UDWORD id, UDWORD PosX, UDWORD PosY, char *txt);
void addFESlider (UDWORD id, UDWORD parent, UDWORD x,UDWORD y,UDWORD stops,UDWORD pos,UDWORD attachID);
void displayLogo (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours);
static void displayTitleBitmap (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours); static void displayTitleBitmap (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours);
void displayTextOption (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours);
void displayTextAt270 (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours); void displayTextAt270 (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours);
static void displayBigSlider (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours); static void displayBigSlider (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours);
@ -1332,7 +1308,7 @@ void removeTopForm( void )
} }
// //////////////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////////////////
void addTextButton(UDWORD id, UDWORD PosX, UDWORD PosY, char *txt,BOOL bAlign,BOOL bGrey) void addTextButton(UDWORD id, UDWORD PosX, UDWORD PosY, const char *txt,BOOL bAlign,BOOL bGrey)
{ {
W_BUTINIT sButInit; W_BUTINIT sButInit;
memset(&sButInit, 0, sizeof(W_BUTINIT)); memset(&sButInit, 0, sizeof(W_BUTINIT));
@ -1396,7 +1372,7 @@ void addFESlider(UDWORD id, UDWORD parent, UDWORD x,UDWORD y,UDWORD stops,UDWORD
} }
// //////////////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////////////////
void addSideText(UDWORD id, UDWORD PosX, UDWORD PosY, char *txt) void addSideText(UDWORD id, UDWORD PosX, UDWORD PosY, const char *txt)
{ {
W_LABINIT sLabInit; W_LABINIT sLabInit;
memset(&sLabInit, 0, sizeof(W_LABINIT)); memset(&sLabInit, 0, sizeof(W_LABINIT));

View File

@ -78,8 +78,6 @@ extern BOOL startTitleMenu (void);
extern BOOL runTitleMenu (void); extern BOOL runTitleMenu (void);
extern BOOL runSinglePlayerMenu (void); extern BOOL runSinglePlayerMenu (void);
extern BOOL runMultiPlayerMenu (void); extern BOOL runMultiPlayerMenu (void);
//extern BOOL runVideoOptionsMenu (void);
//extern BOOL runGraphicsOptionsMenu (void);
extern BOOL runGameOptionsMenu (void); extern BOOL runGameOptionsMenu (void);
extern BOOL runDemoMenu (void); extern BOOL runDemoMenu (void);
extern BOOL runOptionsMenu (void); extern BOOL runOptionsMenu (void);
@ -90,8 +88,8 @@ extern void processFrontendSnap (BOOL bHideCursor);
extern void addTopForm (void); extern void addTopForm (void);
extern void addBottomForm (void); extern void addBottomForm (void);
extern void addBackdrop (void); extern void addBackdrop (void);
extern void addTextButton (UDWORD id, UDWORD PosX, UDWORD PosY, char *txt,BOOL bAlignLeft,BOOL bGrey); extern void addTextButton (UDWORD id, UDWORD PosX, UDWORD PosY, const char *txt,BOOL bAlignLeft,BOOL bGrey);
extern void addSideText (UDWORD id, UDWORD PosX, UDWORD PosY, char *txt); extern void addSideText (UDWORD id, UDWORD PosX, UDWORD PosY, const char *txt);
extern void addFESlider (UDWORD id, UDWORD parent, UDWORD x,UDWORD y,UDWORD stops,UDWORD pos,UDWORD attachID ); extern void addFESlider (UDWORD id, UDWORD parent, UDWORD x,UDWORD y,UDWORD stops,UDWORD pos,UDWORD attachID );
extern void displayLogo (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours); extern void displayLogo (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours);

View File

@ -91,7 +91,7 @@ void drawBlueBox (UDWORD x,UDWORD y, UDWORD w, UDWORD h);
BOOL closeLoadSave (void); BOOL closeLoadSave (void);
BOOL runLoadSave (BOOL bResetMissionWidgets); BOOL runLoadSave (BOOL bResetMissionWidgets);
BOOL displayLoadSave (void); BOOL displayLoadSave (void);
static BOOL _addLoadSave (BOOL bLoad, const char *sSearchPath, const char *sExtension, char *title); static BOOL _addLoadSave (BOOL bLoad, const char *sSearchPath, const char *sExtension, const char *title);
static BOOL _runLoadSave (BOOL bResetMissionWidgets); static BOOL _runLoadSave (BOOL bResetMissionWidgets);
static void displayLoadBanner (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours); static void displayLoadBanner (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours);
static void displayLoadSlot (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours); static void displayLoadSlot (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours);
@ -127,7 +127,7 @@ BOOL saveMidMission(void)
} }
// //////////////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////////////////
BOOL addLoadSave(LOADSAVE_MODE mode, const char *sSearchPath, const char *sExtension, char *title) BOOL addLoadSave(LOADSAVE_MODE mode, const char *sSearchPath, const char *sExtension, const char *title)
{ {
BOOL bLoad; BOOL bLoad;
@ -154,7 +154,7 @@ BOOL bLoad;
//**************************************************************************************** //****************************************************************************************
// Load menu/save menu? // Load menu/save menu?
//***************************************************************************************** //*****************************************************************************************
static BOOL _addLoadSave(BOOL bLoad, const char *sSearchPath, const char *sExtension, char *title) static BOOL _addLoadSave(BOOL bLoad, const char *sSearchPath, const char *sExtension, const char *title)
{ {
W_FORMINIT sFormInit; W_FORMINIT sFormInit;
W_BUTINIT sButInit; W_BUTINIT sButInit;

View File

@ -63,7 +63,7 @@ extern BOOL bRequestLoad;
extern void drawBlueBox (UDWORD x,UDWORD y, UDWORD w, UDWORD h); extern void drawBlueBox (UDWORD x,UDWORD y, UDWORD w, UDWORD h);
extern BOOL addLoadSave(LOADSAVE_MODE mode, const char *defaultdir, const char *extension, char *title); extern BOOL addLoadSave(LOADSAVE_MODE mode, const char *defaultdir, const char *extension, const char *title);
extern BOOL closeLoadSave (void); extern BOOL closeLoadSave (void);
extern BOOL runLoadSave (BOOL bResetMissionWidgets); extern BOOL runLoadSave (BOOL bResetMissionWidgets);
extern BOOL displayLoadSave (void); extern BOOL displayLoadSave (void);

View File

@ -148,7 +148,7 @@ static UDWORD hideTime=0;
// widget functions // widget functions
BOOL addMultiBut (W_SCREEN *screen, UDWORD formid,UDWORD id,UDWORD x, UDWORD y, UDWORD width, UDWORD height,UDWORD tipres,UDWORD norm, UDWORD hi,BOOL showmouseover); BOOL addMultiBut (W_SCREEN *screen, UDWORD formid,UDWORD id,UDWORD x, UDWORD y, UDWORD width, UDWORD height,UDWORD tipres,UDWORD norm, UDWORD hi,BOOL showmouseover);
BOOL addMultiEditBox (UDWORD formid,UDWORD id,UDWORD x, UDWORD y, UDWORD tip, char tipres[128],UDWORD icon,UDWORD iconid); BOOL addMultiEditBox (UDWORD formid,UDWORD id,UDWORD x, UDWORD y, UDWORD tip, char tipres[128],UDWORD icon,UDWORD iconid);
static void addBlueForm (UDWORD parent,UDWORD id,char *txt,UDWORD x,UDWORD y,UDWORD w,UDWORD h); static void addBlueForm (UDWORD parent,UDWORD id, const char *txt,UDWORD x,UDWORD y,UDWORD w,UDWORD h);
// Drawing Functions // Drawing Functions
void displayChatEdit (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours); void displayChatEdit (WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD *pColours);
@ -807,7 +807,7 @@ void startGameFind(void)
// //////////////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////////////////
static void addBlueForm(UDWORD parent,UDWORD id,char *txt,UDWORD x,UDWORD y,UDWORD w,UDWORD h) static void addBlueForm(UDWORD parent,UDWORD id, const char *txt,UDWORD x,UDWORD y,UDWORD w,UDWORD h)
{ {
W_FORMINIT sFormInit; W_FORMINIT sFormInit;
W_LABINIT sLabInit; W_LABINIT sLabInit;

View File

@ -316,9 +316,9 @@ BOOL statsShutDown(void)
/* Return the number of newlines in a file buffer */ /* Return the number of newlines in a file buffer */
UDWORD numCR(char *pFileBuffer, UDWORD fileSize) UDWORD numCR(const char *pFileBuffer, UDWORD fileSize)
{ {
UDWORD lines=0;//, filePos=0; UDWORD lines=0;
while (fileSize-- > 0) while (fileSize-- > 0)
{ {

View File

@ -150,7 +150,7 @@ extern UWORD weaponROF(WEAPON_STATS *psStat);
* Load stats functions * Load stats functions
*******************************************************************************/ *******************************************************************************/
/* Return the number of newlines in a file buffer */ /* Return the number of newlines in a file buffer */
extern UDWORD numCR(char *pFileBuffer, UDWORD fileSize); extern UDWORD numCR(const char *pFileBuffer, UDWORD fileSize);
/*Load the weapon stats from the file exported from Access*/ /*Load the weapon stats from the file exported from Access*/
extern BOOL loadWeaponStats(char *pWeaponData, UDWORD bufferSize); extern BOOL loadWeaponStats(char *pWeaponData, UDWORD bufferSize);