Commit graph

15953 commits

Author SHA1 Message Date
Joris
102a369dcf Fix gcc warnings when !defined(USE_OPENGL) && !defined(USE_GLES) 2013-02-09 04:47:52 +01:00
Pali Rohár
d6efb9f190 FindSDL_gles.cmake - Remove using CMakePushCheckState which is not in CMake 2.6 2013-02-08 23:09:48 +01:00
Pali Rohár
781af593cb Fix cmake dependences for version-generated.h
* Seems like different versions of CMake and GNU Make doing different things and does not resolve dependeces correctly
* add_custom_command in old version of CMake cannot depends on non-file target
* Old version of CMake does not resolve dependency stratagus.cpp --> version.h --> version-generated.h and trying to compile stratagus.cpp before version-generated.h
* And when generating doxygen documentation, it cannot find rule how to generate version-generated.h, so in stratagus_HDRS file version-generated.h must be twice

* I belive that now compilation is working with CMake 2.6, 2.8, GNU Make 3.8 and Ninja
2013-02-08 23:06:10 +01:00
Pali Rohár
8550a3ae72 TerrainTraversal::dataType must be signed, because we are assigning value -1 2013-02-08 20:52:17 +01:00
Pali Rohár
82dadec77a Fix compile warning: no newline at end of file src/missile/missile_continuous.cpp 2013-02-08 20:48:45 +01:00
Pali Rohár
1045517be2 Fix compilation of debug mode, add missing include stdarg.h 2013-02-08 19:58:14 +01:00
Pali Rohár
65c8c26b68 Add support for Native SDL GLES mode and GLES via EGL 2013-02-08 19:55:03 +01:00
Pali Rohár
2a88496eac Fix cmake module FindOpenGLES.cmake
* mesa GLES library has name libGLESv1_CM.so
* unset OPENGLES_LIBRARIES and OPENGLES_INCLUDE_DIR when GLES is not found
2013-02-08 19:33:43 +01:00
Pali Rohár
ba6e11acb6 Rename members False and True of struct to BFalse and BTrue, because on some platforms False and True are defined to 0 and 1 2013-02-08 18:55:22 +01:00
Pali Rohár
9beb9f25b2 Make OpenGL support optional 2013-02-08 18:53:21 +01:00
Joris
3c0a1ee386 Move parameters class in its own file.
Move some code from stratagus.cpp to utils.cpp
2013-02-08 17:20:58 +01:00
Pali Rohár
26d00cd82a Show debug message in script_ai.cpp only in debug mode 2013-02-08 16:34:27 +01:00
Pali Rohár
d6aaec8480 Update HOWTO-NEW-RELEASE 2013-02-08 14:37:24 +01:00
Pali Rohár
0dd75032fc Generate file version-generated.h when cross compiling too (but there is no support for bzr rev) 2013-02-08 14:37:06 +01:00
Joris
008611e8e1 Move some code from stratagus.cpp to game.cpp 2013-02-07 19:03:41 +01:00
Pali Rohár
ca1e4e4583 Disable duplicate debug log of units 2013-02-07 15:18:24 +01:00
Pali Rohár
7bcf6ebf4b Update file Doxyfile.in 2013-02-07 15:02:55 +01:00
Pali Rohár
24f4f31b1c Fix cmake flags for gcc 2013-02-07 14:59:50 +01:00
Pali Rohár
b4904e0271 Move dirent.h and direct.h to compiler ifdef 2013-02-07 14:54:37 +01:00
Pali Rohár
6c5305411a Add file version-generated.h to Doxygen 2013-02-07 14:53:38 +01:00
Pali Rohár
6c1f71a636 Fix doxygen info for VERSION 2013-02-07 14:53:11 +01:00
cybermind
6e8a218720 [+] Added ability to take resources for spell cast
[-] Fixed version compilation for MSVC
2013-02-07 19:22:06 +06:00
Joris
c15d4e142a Fix gcc warnings. 2013-02-07 11:51:03 +01:00
cybermind
14ab1972ec [+] Added fade time in "static-sprite" of DefineDecorations as third argument in table
[+] Added poison damage which will slowly drain health for POISON_INDEX tics.
[+] Aility to change values in animation "set-var" by percent.
[+] Added LuaToUnsignedNumber for correct handling full unsigned ints.
[*] Smoke missiles take their heading angle from main missile.
[*] Correct handling for Warcraft 2 timed spells and health loss for time-to-live ability : the values change every cycle, not every second
2013-02-06 21:20:50 +06:00
cybermind
21a13410c6 [-] Fixed compilation on MSVC 2013-02-06 10:43:55 +06:00
Pali Rohár
d22dd570c0 Update file HOWTO-NEW-RELEASE 2013-02-05 23:41:35 +01:00
Pali Rohár
0eef9e3351 Remove version string from doc/stratagus.6 2013-02-05 23:41:07 +01:00
Pali Rohár
1da6e419f8 Remove hardcoded version string from doc/Doxyfile.in, instead use compile time variable from cmake 2013-02-05 23:40:39 +01:00
Pali Rohár
c1df18ef4d Fix generating file version-generated.h 2013-02-05 23:39:30 +01:00
Pali Rohár
68d028b3e5 Fix include in src/win32/stratagus.rc 2013-02-05 22:28:24 +01:00
Pali Rohár
2fc762b2d9 In Windows NSIS Installer use version from cmake 2013-02-05 22:27:43 +01:00
Pali Rohár
2f667d0c85 Add VERBATIM to all cmake add_custom_command calls, which causing that arguments will be escaped properly 2013-02-05 22:19:20 +01:00
Pali Rohár
a0ff593ed8 Generate version string at compile time from CMakeLists.txt and from bzr revision
* Move StratagusMajorVersion, StratagusMinorVersion, StratagusPatchLevel and StratagusPatchLevel2 to CMakeLists.txt
* Added tool genversion.cpp which (re)generate file version-generated.h from cmake if needed
* Fill VERSION macro from other values with C preprocessor instead hardcoded values
* Remove macros StratagusFormatString and StratagusFormatArgs from code, use only VERSION
2013-02-05 22:16:43 +01:00
Pali Rohár
f1602c25e2 Do not use REFS_DEBUG define, instead use DEBUG 2013-02-05 17:54:21 +01:00
Pali Rohár
297bb8f2dd Implement GetLocalPlayerNameFromEnv for Windows 2013-02-05 17:39:34 +01:00
Pali Rohár
7c2f6c81a9 Remove HAVE_X and HAVE_X11 definitions, add USE_X11
* This commit enabling clipboard (copy/paste) support on systems with X server

* Now we are using USE_* defines for stratagus features and HAVE_* defines for system native functions (not reimplemented in stratagus)
* So all stratagus builds with different HAVE_* defines should work same and should have same features
2013-02-05 17:14:46 +01:00
Pali Rohár
4f07af2c93 Do not use DEBUG_LOG define, instead use DEBUG 2013-02-05 17:14:27 +01:00
Pali Rohár
e7146ac413 Fix ENABLE_STRIP in CMakeLists.txt, now working only with gcc 2013-02-05 17:00:02 +01:00
Pali Rohár
db0fc4d49c Add -DDEBUG via add_definitions 2013-02-05 16:56:16 +01:00
Pali Rohár
d291e598a3 Remove __unix, unix and __APPLE__ defines, add new USE_LINUX and use USE_LINUX and USE_APPLE in current code 2013-02-05 16:48:08 +01:00
Pali Rohár
56d7335fd6 Do not use _MSC_VER define where is not needed, instead use USE_WIN32 2013-02-05 16:36:28 +01:00
Pali Rohár
cfc336586b Use cmake for determinate if system has getopt function, use util.h for getopt 2013-02-05 15:54:34 +01:00
Pali Rohár
606d5ef476 Functions strcpy_s, strncpy_s and strcat_s must return errno_t
* Use cmake for determinating if system has above functions
* Compile our implementations only if system does not have these functions
* Define macro _TRUNCATE if is not defined
* Define errno_t if is not in any standard header include file
* Define prototypes of above functions only if system does not have them

* This commit fix compilation with ubuntu mingw-w64 cross compiler
2013-02-05 15:28:21 +01:00
Pali Rohár
42a30a661d Include png.h before anything else. This fixing compilation on ubuntu 2013-02-05 14:03:42 +01:00
Pali Rohár
791c584c90 Added file HOWTO-NEW-RELEASE which describe how to release new version of stratagus 2013-02-05 12:27:02 +01:00
cybermind
d6579bd743 [+] Reverted back Difficulty (was used in doom wars)
[-] Fixed incorrect type cast in CclDefinePopup
2013-02-03 15:47:00 +06:00
Joris
dc27aa8540 Change Mine choice priority (Fix wargus AI). 2013-01-30 18:16:22 +01:00
Joris
6041fa8188 Remove unused Difficulty field. 2013-01-30 16:17:15 +01:00
Joris
7b657e7bd8 Fix gcc 4.7.1 warnings. 2013-01-28 11:12:57 +01:00
Joris
3ca0c67b88 Some clean up in CclDefineAiHelper. 2013-01-25 16:11:59 +01:00