# HG changeset patch # User koda # Date 1351342238 -7200 # Node ID 3e031b3b33e67850c0f8ed4d7939b1ee353e6af6 # Parent 69ece5fdec490ba93699bba5b0aab70baa8478e5 minor macro cleanup diff -r 69ece5fdec49 -r 3e031b3b33e6 hedgewars/hwengine.pas --- a/hedgewars/hwengine.pas Sat Oct 27 14:28:52 2012 +0200 +++ b/hedgewars/hwengine.pas Sat Oct 27 14:50:38 2012 +0200 @@ -29,11 +29,13 @@ program hwengine; {$ENDIF} -uses SDLh, uMisc, uConsole, uGame, uConsts, uLand, uAmmos, uVisualGears, uGears, uStore, uWorld, uInputHandler, uSound, - uScript, uTeams, uStats, uIO, uLocale, uChat, uAI, uAIMisc, uLandTexture, uCollisions, +uses SDLh, uMisc, uConsole, uGame, uConsts, uLand, uAmmos, uVisualGears, uGears, uStore, uWorld, uInputHandler, + uSound, uScript, uTeams, uStats, uIO, uLocale, uChat, uAI, uAIMisc, uAILandMarks, uLandTexture, uCollisions, SysUtils, uTypes, uVariables, uCommands, uUtils, uCaptions, uDebug, uCommandHandlers, uLandPainted {$IFDEF USE_VIDEO_RECORDING}, uVideoRec {$ENDIF} - {$IFDEF SDL13}, uTouch{$ENDIF}{$IFDEF ANDROID}, GLUnit{$ENDIF}, uAILandMarks; + {$IFDEF USE_TOUCH_INTERFACE}, uTouch {$ENDIF} + {$IFDEF ANDROID}, GLUnit{$ENDIF} + ; {$IFDEF HWLIBRARY} @@ -461,7 +463,7 @@ if complete then begin {$IFDEF ANDROID}GLUnit.init;{$ENDIF} -{$IFDEF SDL13}uTouch.initModule;{$ENDIF} +{$IFDEF USE_TOUCH_INTERFACE}uTouch.initModule;{$ENDIF} uAI.initModule; //uAIActions does not need initialization //uAIAmmoTests does not need initialization diff -r 69ece5fdec49 -r 3e031b3b33e6 hedgewars/options.inc --- a/hedgewars/options.inc Sat Oct 27 14:28:52 2012 +0200 +++ b/hedgewars/options.inc Sat Oct 27 14:50:38 2012 +0200 @@ -42,7 +42,6 @@ {$ENDIF} {$IFDEF MOBILE} - {$DEFINE SDL13} {$DEFINE HWLIBRARY} {$DEFINE S3D_DISABLED} {$DEFINE GLunit:=gles11} @@ -63,6 +62,9 @@ {$ENDIF} {$ENDIF} +{$IFDEF USE_TOUCH_INTERFACE} + {$DEFINE SDL13} +{$ENDIF} {$IFDEF PAS2C} {$DEFINE NOCONSOLE} diff -r 69ece5fdec49 -r 3e031b3b33e6 hedgewars/uGame.pas --- a/hedgewars/uGame.pas Sat Oct 27 14:28:52 2012 +0200 +++ b/hedgewars/uGame.pas Sat Oct 27 14:50:38 2012 +0200 @@ -28,7 +28,7 @@ //////////////////// uses uInputHandler, uTeams, uIO, uAI, uGears, uSound, uMobile, uVisualGears, uTypes, uVariables, uCommands, uConsts - {$IFDEF SDL13}, uTouch{$ENDIF}; + {$IFDEF USE_TOUCH_INTERFACE}, uTouch{$ENDIF}; procedure DoGameTick(Lag: LongInt); var i: LongInt; diff -r 69ece5fdec49 -r 3e031b3b33e6 hedgewars/uTeams.pas --- a/hedgewars/uTeams.pas Sat Oct 27 14:28:52 2012 +0200 +++ b/hedgewars/uTeams.pas Sat Oct 27 14:50:38 2012 +0200 @@ -20,8 +20,10 @@ unit uTeams; interface -uses uConsts, uInputHandler, uGears, uRandom, uFloat, uStats, uVisualGears, uCollisions, GLunit, uSound, uStore, - uTypes{$IFDEF USE_TOUCH_INTERFACE}, uWorld{$ENDIF}; +uses uConsts, uInputHandler, uGears, uRandom, uFloat, uStats, uVisualGears, uCollisions, GLunit, + uSound, uStore, uTypes + {$IFDEF USE_TOUCH_INTERFACE}, uWorld{$ENDIF}; + procedure initModule; procedure freeModule; @@ -39,7 +41,8 @@ implementation uses uLocale, uAmmos, uChat, uVariables, uUtils, uIO, uCaptions, uCommands, uDebug, uScript, - uGearsUtils, uGearsList{$IFDEF SDL13}, uTouch{$ENDIF}; + uGearsUtils, uGearsList + {$IFDEF USE_TOUCH_INTERFACE}, uTouch{$ENDIF}; var MaxTeamHealth: LongInt; GameOver: boolean; diff -r 69ece5fdec49 -r 3e031b3b33e6 project_files/HedgewarsMobile/Hedgewars.xcodeproj/project.pbxproj --- a/project_files/HedgewarsMobile/Hedgewars.xcodeproj/project.pbxproj Sat Oct 27 14:28:52 2012 +0200 +++ b/project_files/HedgewarsMobile/Hedgewars.xcodeproj/project.pbxproj Sat Oct 27 14:50:38 2012 +0200 @@ -177,7 +177,6 @@ 619349C8160BAF3E00A08518 /* uAILandMarks.pas in Sources */ = {isa = PBXBuildFile; fileRef = 619349C5160BAF3E00A08518 /* uAILandMarks.pas */; }; 619349C9160BAF3E00A08518 /* uGearsHandlers.pas in Sources */ = {isa = PBXBuildFile; fileRef = 619349C6160BAF3E00A08518 /* uGearsHandlers.pas */; }; 619349CA160BAF3E00A08518 /* uGearsHandlersRope.pas in Sources */ = {isa = PBXBuildFile; fileRef = 619349C7160BAF3E00A08518 /* uGearsHandlersRope.pas */; }; - 619349CE160BAF6E00A08518 /* uVideoRec.pas in Sources */ = {isa = PBXBuildFile; fileRef = 619349CD160BAF6E00A08518 /* uVideoRec.pas */; }; 6195981F1364BCEF00B429B6 /* libTremor.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6195981D1364BCD200B429B6 /* libTremor.a */; }; 619599451364C83D00B429B6 /* libLua.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 619599441364C82B00B429B6 /* libLua.a */; }; 6199E81612463EA800DADF8C /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6199E81512463EA800DADF8C /* CFNetwork.framework */; }; @@ -552,7 +551,6 @@ 619349C5160BAF3E00A08518 /* uAILandMarks.pas */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.pascal; name = uAILandMarks.pas; path = ../../hedgewars/uAILandMarks.pas; sourceTree = SOURCE_ROOT; }; 619349C6160BAF3E00A08518 /* uGearsHandlers.pas */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.pascal; name = uGearsHandlers.pas; path = ../../hedgewars/uGearsHandlers.pas; sourceTree = SOURCE_ROOT; }; 619349C7160BAF3E00A08518 /* uGearsHandlersRope.pas */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.pascal; name = uGearsHandlersRope.pas; path = ../../hedgewars/uGearsHandlersRope.pas; sourceTree = SOURCE_ROOT; }; - 619349CD160BAF6E00A08518 /* uVideoRec.pas */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.pascal; name = uVideoRec.pas; path = ../../hedgewars/uVideoRec.pas; sourceTree = SOURCE_ROOT; }; 619598181364BCD200B429B6 /* Tremor.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Tremor.xcodeproj; path = ../../misc/libtremor/Xcode/Tremor.xcodeproj; sourceTree = SOURCE_ROOT; }; 6195993F1364C82B00B429B6 /* Lua.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Lua.xcodeproj; path = ../../misc/liblua/Xcode/Lua.xcodeproj; sourceTree = SOURCE_ROOT; }; 619599BA1364E65900B429B6 /* Freetype.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Freetype.xcodeproj; path = "../../misc/libfreetype/Xcode-iOS/Freetype.xcodeproj"; sourceTree = SOURCE_ROOT; }; @@ -1135,7 +1133,6 @@ 9283015C0F10E48900CC5A3C /* Pascal Sources */ = { isa = PBXGroup; children = ( - 619349CD160BAF6E00A08518 /* uVideoRec.pas */, 619349C5160BAF3E00A08518 /* uAILandMarks.pas */, 619349C6160BAF3E00A08518 /* uGearsHandlers.pas */, 619349C7160BAF3E00A08518 /* uGearsHandlersRope.pas */, @@ -1635,7 +1632,6 @@ 619349C8160BAF3E00A08518 /* uAILandMarks.pas in Sources */, 619349C9160BAF3E00A08518 /* uGearsHandlers.pas in Sources */, 619349CA160BAF3E00A08518 /* uGearsHandlersRope.pas in Sources */, - 619349CE160BAF6E00A08518 /* uVideoRec.pas in Sources */, ); runOnlyForDeploymentPostprocessing = 0; };