File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ SetCompressor lzma
4343 ; Welcome page
4444 !insertmacro MUI_PAGE_WELCOME
4545
46- !insertmacro MUI_PAGE_LICENSE " ..\..\gpl-3.0.txt "
46+ !insertmacro MUI_PAGE_LICENSE " ..\..\COPYING "
4747 ; !insertmacro MUI_PAGE_COMPONENTS
4848 !insertmacro MUI_PAGE_DIRECTORY
4949
@@ -75,7 +75,7 @@ Section "Copy Files" drcreepInst
7575
7676 File " .\openfodder.ini"
7777 File " .\packages\VC_redist.x86.exe"
78- File " ..\..\gpl-3.0.txt "
78+ File " ..\..\COPYING* "
7979 File " ..\..\Readme.md"
8080 File " ..\VS2017\Release\OpenFodder.exe"
8181 File " ..\VS2017\Release\SDL2.dll"
@@ -90,10 +90,12 @@ Section "Copy Files" drcreepInst
9090 CopyFilesLocal:
9191
9292 SetOutPath " $DataDest"
93+ File /r " ..\..\Run\about.bmp"
9394 File /r " ..\..\Run\Campaigns"
9495 File /r " ..\..\Run\Data"
9596 File /r " ..\..\Run\Saves"
96-
97+ File /r " ..\..\Run\Scripts"
98+
9799 SetOutPath " $INSTDIR"
98100
99101 ; Store installation folder
Original file line number Diff line number Diff line change 11; OpenFodder
22;
3+ ; Example ini settings are the engine defaults
34;
45
56[openfodder]
6- window =false
7+
8+ ; Start the game in a window
9+ window =true
10+
11+ ; Enable cheat keys
712cheats =false
13+
14+ ; Window size multipler by original game resolution (Amiga 320x225, Dos 320x200)
15+ ; auto finds a size approximately half your screen resolution
16+ ; values such as 1, 2 or 3+ are multiples of the original resolution
817scale =auto
918
19+ ; Number of map tiles to draw horizontally (0 for platform default)
20+ columns =0
21+
22+ ; Number of map tiles to draw vertically (0 for platform default)
23+ rows =0
24+
25+ ; Don't use mouse grab (this alters the behaviour of the in-game camera window) -- Useful for VMs
26+ alternate-mouse =false
27+
1028[paths]
29+ ; Paths to data base folder
30+ ; There is no limit to the number paths in this section (eg, path1, path2... path10)
1131; path1=c:/games/openfodder
1232; path2=d:/games/openfodder
33+ ; path3=d:/games/openfodder
1334
35+ ;
36+ ;
1437[engine]
38+
39+ ; Default platform (amiga/pc)
1540platform =amiga
41+
42+ ; Game engine to use in single/random maps (cf1/cf2)
43+ game =cf1
44+
45+ ; Maximum number of sprites in game (original engine is 45)
1646maxsprite =45
47+
48+ ; Maximum number of enemies which can spawn (original engine is 10)
1749maxspawn =10
1850
51+
1952[skip]
53+
54+ ; Skip the game introduction screens
2055intro =false
56+
57+ ; Skip the briefing screen
2158briefing =false
59+
60+ ; Skip the killed in action / promotion screens
2261service =false
23- hill =false
62+
63+ ; Skip the hill recruit screen
64+ hill =false
Original file line number Diff line number Diff line change @@ -10031,9 +10031,7 @@ void cFodder::Sprite_Handle_Player(sSprite *pSprite) {
1003110031 if (mSquad_CurrentWeapon [pSprite->field_32 ] == eWeapon_Rocket) {
1003210032 mTroop_Weapon_Grenade_Disabled = true ;
1003310033 mTroop_Weapon_Bullet_Disabled = true ;
10034-
10035- }
10036- else {
10034+ } else {
1003710035 if (mSquad_CurrentWeapon [pSprite->field_32 ] == eWeapon_Grenade) {
1003810036 mTroop_Weapon_Rocket_Disabled = true ;
1003910037 mTroop_Weapon_Bullet_Disabled = true ;
Original file line number Diff line number Diff line change @@ -38,17 +38,22 @@ namespace dukglue {
3838}
3939
4040void print (const std::string pString) {
41-
41+ # ifdef DEBUG
4242 g_Debugger->Notice (pString);
43+ #endif
4344}
4445
4546void consoleLog (DukValue pValue) {
47+ #ifdef DEBUG
4648 std::string json = duk_json_encode (pValue.context (), -1 );
4749 g_Debugger->Notice (json);
50+ #endif
4851}
4952
5053void consoleClear () {
54+ #ifdef DEBUG
5155 g_Debugger->ClearConsole ();
56+ #endif
5257}
5358
5459cScriptFileIO::cScriptFileIO (std::string pFilename, bool pRead) {
Original file line number Diff line number Diff line change 11; OpenFodder
22;
3- ;
4-
3+ ; Example ini settings are the engine defaults
4+ ;
55
66[openfodder]
77
@@ -13,23 +13,24 @@ cheats=false
1313
1414; Window size multipler by original game resolution (Amiga 320x225, Dos 320x200)
1515; auto finds a size approximately half your screen resolution
16- ; so values such as 1, 2 or 3
16+ ; values such as 1, 2 or 3+ are multiples of the original resolution
1717scale=auto
1818
1919; Number of map tiles to draw horizontally (0 for platform default)
20- columns=22
20+ columns=0
2121
2222; Number of map tiles to draw vertically (0 for platform default)
23- rows=16
23+ rows=0
2424
25- ; Don't use mouse grab (this alters the behaviour of the in-game camera window) -- Useful of VMs
25+ ; Don't use mouse grab (this alters the behaviour of the in-game camera window) -- Useful for VMs
2626alternate-mouse=false
2727
2828[paths]
2929; Paths to data base folder
3030; There is no limit to the number paths in this section (eg, path1, path2... path10)
3131;path1=c:/games/openfodder
3232;path2=d:/games/openfodder
33+ ;path3=d:/games/openfodder
3334
3435;
3536;
@@ -38,7 +39,7 @@ alternate-mouse=false
3839; Default platform (amiga/pc)
3940platform=amiga
4041
41- ; Game engine to use in single/random maps
42+ ; Game engine to use in single/random maps (cf1/cf2)
4243game=cf1
4344
4445; Maximum number of sprites in game (original engine is 45)
You can’t perform that action at this time.
0 commit comments