Showing with 13,155 additions and 11,521 deletions.
  1. +19 −0 ChangeLog
  2. +2 −2 configure.ac
  3. +1 −1 data/base/components/weapons/trmair2.pie
  4. +1 −1 data/base/components/weapons/trmair3.pie
  5. +14 −14 data/base/effects/fxvulcan.pie
  6. BIN data/base/texpages/page-100-rock-earth-rockies.png
  7. BIN data/base/texpages/page-101-cliff-rockies.png
  8. BIN data/base/texpages/page-102-bottom-rockies.png
  9. BIN data/base/texpages/page-103-tiles-rockies.png
  10. BIN data/base/texpages/page-104-snowgrass-rockies.png
  11. BIN data/base/texpages/page-105-snow-rockies.png
  12. BIN data/base/texpages/page-106-snowrock-rockies.png
  13. BIN data/base/texpages/page-107-brown-earth-rockies.png
  14. BIN data/base/texpages/page-108-snowcliff-rockies.png
  15. BIN data/base/texpages/page-19-fx.png
  16. BIN data/base/texpages/page-80-water-1.png
  17. BIN data/base/texpages/page-81-water-2.png
  18. BIN data/base/texpages/page-82-yellow-sand-arizona.png
  19. BIN data/base/texpages/page-83-red-earth-arizona.png
  20. BIN data/base/texpages/page-84-tiles-arizona.png
  21. BIN data/base/texpages/page-85-cliff-arizona.png
  22. BIN data/base/texpages/page-86-bottom-arizona.png
  23. BIN data/base/texpages/page-87-mud-arizona.png
  24. BIN data/base/texpages/page-88-grass-arizona.png
  25. BIN data/base/texpages/page-89-gray-rubble-urban.png
  26. BIN data/base/texpages/page-90-green-urban.png
  27. BIN data/base/texpages/page-91-tiles-urban.png
  28. BIN data/base/texpages/page-92-medium-tiles-urban.png
  29. BIN data/base/texpages/page-93-big-tiles-urban.png
  30. BIN data/base/texpages/page-94-cliffs-urban.png
  31. BIN data/base/texpages/page-95-brown-rocks-urban.png
  32. BIN data/base/texpages/page-96-burned-ground-urban.png
  33. BIN data/base/texpages/page-97-burned-tiles-urban.png
  34. BIN data/base/texpages/page-98-bottom-urban.png
  35. BIN data/base/texpages/page-99-grass-rockies.png
  36. +1 −1 data/mp/stats/templates.txt
  37. +2 −2 data/mp/structs/trmflmrp.pie
  38. +1 −1 lib/exceptionhandler/exceptionhandler.cpp
  39. +1 −1 lib/framework/input.h
  40. +3 −3 lib/framework/wzglobal.h
  41. +1 −1 lib/gamelib/animobj.cpp
  42. +8 −14 lib/gamelib/gtime.cpp
  43. +1 −3 lib/gamelib/gtime.h
  44. +1 −5 lib/ivis_opengl/screen.cpp
  45. +6 −1 lib/netplay/netplay.cpp
  46. +219 −0 macosx/Warzone.xcodeproj/project.pbxproj
  47. +2 −2 macosx/configs/fetchscripts/SetupPrebuiltComponents-Docs.sh
  48. +10 −2 pkg/dpkg/changelog
  49. +1 −1 pkg/dpkg/control
  50. +1 −1 pkg/dpkg/editchangelog
  51. +1 −1 pkg/dpkg/videos/debian/changelog
  52. +1 −1 pkg/dpkg/videos/debian/control
  53. +1 −1 pkg/dpkg/videos/debian/copyright
  54. +0 −1 pkg/dpkg/warzone2100-data.install
  55. +1 −1 po/Makevars
  56. +338 −325 po/ca_ES.po
  57. +338 −325 po/cs.po
  58. +338 −325 po/da.po
  59. +387 −390 po/de.po
  60. +338 −325 po/en_GB.po
  61. +339 −326 po/es.po
  62. +338 −325 po/et_EE.po
  63. +337 −325 po/fi.po
  64. +511 −681 po/fr.po
  65. +333 −322 po/fy.po
  66. +333 −322 po/ga.po
  67. +338 −325 po/hr.po
  68. +338 −325 po/hu.po
  69. +339 −326 po/it.po
  70. +338 −325 po/ko.po
  71. +330 −320 po/la.po
  72. +333 −322 po/lt.po
  73. +335 −324 po/nb.po
  74. +338 −325 po/nl.po
  75. +449 −598 po/pl.po
  76. +339 −326 po/pt.po
  77. +339 −326 po/pt_BR.po
  78. +338 −325 po/ro.po
  79. +363 −346 po/ru.po
  80. +338 −325 po/sk.po
  81. +338 −325 po/sl.po
  82. +339 −326 po/tr.po
  83. +338 −325 po/uk_UA.po
  84. +338 −325 po/zh_CN.po
  85. +338 −325 po/zh_TW.po
  86. +5 −3 src/Makefile.am
  87. +18 −21 src/action.cpp
  88. +1 −1 src/action.h
  89. +8 −2 src/ai.cpp
  90. +5 −2 src/baseobject.cpp
  91. +4 −4 src/combat.cpp
  92. +6 −5 src/component.cpp
  93. +50 −0 src/cursorselection
  94. +6 −0 src/design.cpp
  95. +22 −92 src/display.cpp
  96. +1 −0 src/display.h
  97. +9 −4 src/display3d.cpp
  98. +1 −0 src/display3d.h
  99. +69 −49 src/drive.cpp
  100. +24 −23 src/droid.cpp
  101. +3 −1 src/droiddef.h
  102. +1 −1 src/effects.cpp
  103. +1 −1 src/feature.cpp
  104. +1 −1 src/fpath.cpp
  105. +29 −27 src/frontend.cpp
  106. +13 −12 src/frontend.h
  107. +4 −7 src/function.cpp
  108. +8 −7 src/game.cpp
  109. +2 −2 src/group.cpp
  110. +21 −14 src/hci.cpp
  111. +16 −16 src/ingameop.cpp
  112. +5 −4 src/ingameop.h
  113. +51 −33 src/intdisplay.cpp
  114. +4 −2 src/intorder.cpp
  115. +15 −2 src/keybind.cpp
  116. +5 −4 src/keyedit.cpp
  117. +4 −3 src/loop.cpp
  118. +3 −0 src/main.cpp
  119. +1 −0 src/mapdisplay.cpp
  120. +62 −71 src/mission.cpp
  121. +67 −81 src/move.cpp
  122. +1 −1 src/multibot.cpp
  123. +1 −1 src/multigifts.cpp
  124. +2 −0 src/multiint.h
  125. +1 −7 src/multijoin.cpp
  126. +8 −2 src/multilimit.cpp
  127. +121 −172 src/multimenu.cpp
  128. +0 −2 src/multiopt.cpp
  129. +1 −2 src/multiplay.cpp
  130. +1 −1 src/multistruct.cpp
  131. +6 −9 src/objmem.cpp
  132. +56 −51 src/order.cpp
  133. +1 −1 src/order.h
  134. +4 −1 src/projectile.cpp
  135. +1 −1 src/projectiledef.h
  136. +0 −4 src/qtscript.cpp
  137. +5 −2 src/qtscriptfuncs.cpp
  138. +12 −13 src/research.cpp
  139. +14 −57 src/scores.cpp
  140. +1 −1 src/scores.h
  141. +5 −3 src/scriptai.cpp
  142. +29 −30 src/scriptfuncs.cpp
  143. +1 −0 src/scripttabs.cpp
  144. +4 −4 src/selection.cpp
  145. +35 −49 src/structure.cpp
  146. +6 −13 src/template.cpp
  147. +25 −33 src/transporter.cpp
  148. +1 −1 src/transporter.h
  149. +1 −1 src/version.cpp
  150. +3 −0 tests/.gitignore
  151. +1 −0 tests/Tests.xcodeproj/Do not hand edit these files under any circumstances, always use xcode
  152. +1,025 −0 tests/Tests.xcodeproj/project.pbxproj
  153. +17 −0 tests/configs/Base-Tests.xcconfig
  154. +29 −0 tests/configs/Project-All.xcconfig
  155. +40 −0 tests/configs/maptest-All.xcconfig
  156. +17 −0 tests/configs/maptest-Debug.xcconfig
  157. +14 −0 tests/configs/maptest-Release.xcconfig
  158. +11 −0 tests/configs/maptest-StaticAnalyzer.xcconfig
  159. +40 −0 tests/configs/modeltest-All.xcconfig
  160. +17 −0 tests/configs/modeltest-Debug.xcconfig
  161. +14 −0 tests/configs/modeltest-Release.xcconfig
  162. +11 −0 tests/configs/modeltest-StaticAnalyzer.xcconfig
  163. +43 −0 tests/configs/qslint-All.xcconfig
  164. +17 −0 tests/configs/qslint-Debug.xcconfig
  165. +14 −0 tests/configs/qslint-Release.xcconfig
  166. +11 −0 tests/configs/qslint-StaticAnalyzer.xcconfig
  167. +40 −0 tests/configs/qtscripttest-All.xcconfig
  168. +17 −0 tests/configs/qtscripttest-Debug.xcconfig
  169. +14 −0 tests/configs/qtscripttest-Release.xcconfig
  170. +11 −0 tests/configs/qtscripttest-StaticAnalyzer.xcconfig
  171. +12 −0 tests/configs/scripts/jslist.sh
  172. +12 −0 tests/configs/scripts/maplist.sh
  173. +12 −0 tests/configs/scripts/modellist.sh
  174. +1 −0 ...map/MapUtilities.xcodeproj/Do not hand edit these files under any circumstances, always use xcode
  175. +43 −43 tools/map/MapUtilities.xcodeproj/project.pbxproj
  176. +1 −1 tools/map/configs/Project-All.xcconfig
  177. +1 −0 tools/map/configs/map2png-All.xcconfig
  178. +4 −4 win32/warzone2100.rc
19 changes: 19 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
2012-03-13: Version 3.1_beta5
* General:
* Change: Adjust the burning time of destroyed oil derricks by the percentage they were completed (commit:f6ddbf1878ff2a387c4be95449d8a7835c18ebd8)
* Fix: Don't corrupt savegames (ticket:3200, commit:da9d427e5def9b82ab95c99b42ec8e2049bfcd12)
* Fix: Reduce unit delay by 200 ms (commit:f36cb966ce6effd58e1dc42e275d00fe9bd8904d)
* Fix: Reduce units shuffling around their destination (ticket:2996, commit:0b7605c4ee9464f5966a31d6523fb7e248f4323a)
* Fix: Don't land several VTOLs on the same tile (commit:9dcf5bdf4eb4d590ea15e1c5201ceefe0819a5dc)
* Fix: When picking up artifacts or oil drums with a sensor unit, don't make the units attached to it shoot (ticket:1281, commit:42017f5e12a29f21dd31e7b595a7158168efb063)
* Fix: Disable target prediction for droids that are trying to drive through stuff (commit:a94bd6629d17f50df9b3a58b97bb3f8cd734e12b)
* Fix: Make "Go to Transport" button work sensibly (commit:2d938a0323e5c47ce4a41c9fb6c5a0d42eb9593d)
* Multiplayer:
* Fix: Supertransporter fixes (ticket:3196, ticket:3210, ticket:3224, commit:fcede64e428e46657db2ef7b0f7bd1ce26b1d91d, commit:6bc90e6d2e0343d7d5e6e54be09f97f2c8e1cbd8, commit:475d1e625218924d252f5eb546e55824a5f697ed, commit:9e63fe34339128f5844d21a67f72a5c2d2bf0814)
* Fix: Don't kick players several times (ticket:3209, commit:bc65f978015b73bef462e53726ff53fcdc607d18)
* Translations:
* Update: Russian (ticket:3221, commit:f627fd803c3356fe344e09ac172634e93e774332)
* Update: German (ticket:3205, commit:6f5bf39951eccb4d2ee01cef7a64269820a1ddcb)
* Update: Polish (ticket:1347, commit:2042b60e4f144b483b12164d67f99adf4e915ac0)
* Update: French (ticket:3276, commit:a26aa5f3ad89312e47b026bcfe1b44271b47faef, commit:2c093a6ff96bce87f2edc1d1a7c10369a2f78c58)

2012-02-21: Version 3.1-beta4
* General:
* Change: New keyboard shortcuts for unit selection:
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AC_PREREQ([2.56])
AC_INIT([Warzone 2100],[3.1git],[http://wz2100.net/],[warzone2100])
AC_INIT([Warzone 2100],[3.1_beta5],[http://wz2100.net/],[warzone2100])

AM_INIT_AUTOMAKE([1.10 tar-ustar])

Expand Down Expand Up @@ -262,7 +262,7 @@ AS_IF([test "x$enable_sound" != "xyes"],[
# Add later for stricter checking: -Wextra -Wmissing-declarations -Wstrict-prototypes
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug[=yes/relaxed/profile/debugprofile/optimised/no]],[Compile debug version [[yes]]]),
[ enable_debug=${enableval} ], [ enable_debug=yes ])
[ enable_debug=${enableval} ], [ enable_debug=no ])
AC_MSG_CHECKING([whether to compile in debug mode])
AC_MSG_RESULT([${enable_debug}])

Expand Down
2 changes: 1 addition & 1 deletion data/base/components/weapons/trmair2.pie
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PIE 2
TYPE 200
TYPE 10200
TEXTURE 0 page-17-droid-weapons.png 256 256
LEVELS 1
LEVEL 1
Expand Down
2 changes: 1 addition & 1 deletion data/base/components/weapons/trmair3.pie
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PIE 2
TYPE 200
TYPE 10200
TEXTURE 0 page-17-droid-weapons.png 256 256
LEVELS 1
LEVEL 1
Expand Down
28 changes: 14 additions & 14 deletions data/base/effects/fxvulcan.pie
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ TYPE 200
TEXTURE 0 page-21-fx.png 256 256
LEVELS 1
LEVEL 1
POINTS 8
0 5 0
0 14 0
0 14 -25
0 5 -25
-4 10 0
4 10 0
4 10 -25
-4 10 -25
POINTS 8
0 -4 0
0 5 0
0 5 -25
0 -4 -25
-4 1 0
4 1 0
4 1 -25
-4 1 -25
POLYGONS 8
200 3 0 1 2 240 49 251 49 251 28
200 3 0 2 3 240 49 251 28 240 28
200 3 3 2 1 240 28 251 28 251 49
200 3 3 1 0 240 28 251 49 240 49
200 3 4 5 6 240 49 251 49 251 28
200 3 4 6 7 240 49 251 28 240 28
200 3 7 6 5 240 28 251 28 251 49
200 3 7 5 4 240 28 251 49 240 49
200 3 7 5 4 240 28 251 49 240 49
200 3 3 0 1 240 28 240 49 251 49
200 3 3 1 2 240 28 251 49 251 28
200 3 7 4 5 240 28 240 49 251 49
200 3 7 5 6 240 28 251 49 251 28
Binary file modified data/base/texpages/page-100-rock-earth-rockies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-101-cliff-rockies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-102-bottom-rockies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-103-tiles-rockies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-104-snowgrass-rockies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-105-snow-rockies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-106-snowrock-rockies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-107-brown-earth-rockies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-108-snowcliff-rockies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-19-fx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-80-water-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-81-water-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-82-yellow-sand-arizona.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-83-red-earth-arizona.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-84-tiles-arizona.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-85-cliff-arizona.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-86-bottom-arizona.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-87-mud-arizona.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-88-grass-arizona.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-89-gray-rubble-urban.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-90-green-urban.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-91-tiles-urban.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-92-medium-tiles-urban.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-93-big-tiles-urban.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-94-cliffs-urban.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/base/texpages/page-95-brown-rocks-urban.png
Binary file modified data/base/texpages/page-96-burned-ground-urban.png
Binary file modified data/base/texpages/page-97-burned-tiles-urban.png
Binary file modified data/base/texpages/page-98-bottom-urban.png
Binary file modified data/base/texpages/page-99-grass-rockies.png
2 changes: 1 addition & 1 deletion data/mp/stats/templates.txt
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,6 @@ SK-Mantis-VTOL-HBB,743,Body12SUP,ZNULLBRAIN,ZNULLCONSTRUCT,ZNULLECM,NO,V-Tol,ZNU
SK-Retre-VTOL-HBB,744,Body7ABT,ZNULLBRAIN,ZNULLCONSTRUCT,ZNULLECM,NO,V-Tol,ZNULLREPAIR,DROID,DefaultSensor1Mk1,1
SK-Retal-VTOL-Scourge,745,Body3MBT,ZNULLBRAIN,ZNULLCONSTRUCT,ZNULLECM,NO,V-Tol,ZNULLREPAIR,DROID,DefaultSensor1Mk1,1
SK-Retre-VTOL-Plasmite,746,Body7ABT,ZNULLBRAIN,ZNULLCONSTRUCT,ZNULLECM,NO,V-Tol,ZNULLREPAIR,DROID,DefaultSensor1Mk1,1
SuperTransport,746,SuperTransportBody,ZNULLBRAIN,ZNULLCONSTRUCT,ZNULLECM,YES,V-Tol,ZNULLREPAIR,TRANSPORTER,DefaultSensor1Mk1,1
SuperTransport,746,SuperTransportBody,ZNULLBRAIN,ZNULLCONSTRUCT,ZNULLECM,YES,V-Tol,ZNULLREPAIR,SUPERTRANSPORTER,DefaultSensor1Mk1,1
SK-Veng-Hover-Seraph,747,Body10MBT,ZNULLBRAIN,ZNULLCONSTRUCT,ZNULLECM,NO,hover01,ZNULLREPAIR,DROID,DefaultSensor1Mk1,1
Dragon-Hover-SeraphGauss,748,Body14SUP,ZNULLBRAIN,ZNULLCONSTRUCT,ZNULLECM,NO,hover01,ZNULLREPAIR,DROID,DefaultSensor1Mk1,2
4 changes: 2 additions & 2 deletions data/mp/structs/trmflmrp.pie
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PIE 2
TYPE 200
TYPE 10200
TEXTURE 0 page-17-droid-weapons.png 256 256
LEVELS 1
LEVEL 1
Expand Down Expand Up @@ -50,4 +50,4 @@ POLYGONS 28
4200 3 12 17 15 8 1 16 19 16 0 0 0 0 19
4200 3 12 15 9 8 1 16 19 16 0 0 19 16 19
4200 3 17 16 14 8 1 18 9 18 28 0 28 0 37
4200 3 17 14 15 8 1 18 9 18 28 0 37 18 37
4200 3 17 14 15 8 1 18 9 18 28 0 37 18 37
2 changes: 1 addition & 1 deletion lib/exceptionhandler/exceptionhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ static bool gdbExtendedBacktrace(int const dumpFile)
int status;
pid_t wpid;
// Retrieve a full stack backtrace
static const char gdbCommands[] = "backtrace full\n"
static const char gdbCommands[] = "thread apply all backtrace full\n"

// Move to the stack frame where we triggered the crash
"frame 4\n"
Expand Down
2 changes: 1 addition & 1 deletion lib/framework/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ extern void inputNewFrame(void);

static inline bool specialOrderKeyDown()
{
return keyDown(KEY_LALT) || keyDown(KEY_RALT) || keyDown(KEY_LMETA) || keyDown(KEY_RMETA);
return keyDown(KEY_LALT) || keyDown(KEY_RALT) || keyDown(KEY_LMETA) || keyDown(KEY_RMETA) || keyDown(KEY_LSUPER) || keyDown(KEY_RSUPER);
}

#endif // _input_h
6 changes: 3 additions & 3 deletions lib/framework/wzglobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
# define WZ_OS_INTEGRITY
#elif defined(__MAKEDEPEND__)
#else
# error "Warzone has not been tested on this OS. Please contact warzone-dev@gna.org"
# error "Warzone has not been tested on this OS. Please contact warzone2100-project@lists.sourceforge.net"
#endif /* WZ_OS_x */

#if defined(WZ_OS_WIN32) || defined(WZ_OS_WIN64)
Expand Down Expand Up @@ -248,7 +248,7 @@
# define WZ_CC_TINYC

#else
# error "Warzone has not been tested on this compiler. Please contact warzone-dev@gna.org"
# error "Warzone has not been tested on this compiler. Please contact warzone2100-project@lists.sourceforge.net"
#endif /* WZ_CC_x */


Expand Down Expand Up @@ -286,7 +286,7 @@
# define WZ_WS_X11

#else
# error "Warzone has not been tested on this window system. Please contact warzone-dev@gna.org"
# error "Warzone has not been tested on this window system. Please contact warzone2100-project@lists.sourceforge.net"
#endif /* WZ_WS_x */

#if defined(WZ_WS_WIN16) || defined(WZ_WS_WIN32)
Expand Down
2 changes: 1 addition & 1 deletion lib/gamelib/animobj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ animObj_Add( void *pParentObj, int iAnimID,
/* init object */
psObj->uwID = (UWORD) iAnimID;
psObj->psAnim = (ANIM3D *) psAnim;
psObj->udwStartTime = gameTime - deltaGameTime; // Start animation at beginning of update period.
psObj->udwStartTime = gameTime - deltaGameTime + 1; // Start animation at beginning of update period.
psObj->udwStartDelay = udwStartDelay;
psObj->uwCycles = uwCycles;
psObj->bVisible = true;
Expand Down
22 changes: 8 additions & 14 deletions lib/gamelib/gtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,24 +310,18 @@ void gameTimeReset(UDWORD time)
deltaRealTime = 0;
}

void getTimeComponents(UDWORD time, UDWORD *hours, UDWORD *minutes, UDWORD *seconds)
void getTimeComponents(unsigned time, int *hours, int *minutes, int *seconds, int *milliseconds)
{
UDWORD h, m, s;
UDWORD ticks_per_hour, ticks_per_minute;
*milliseconds = time % GAME_TICKS_PER_SEC;
time /= GAME_TICKS_PER_SEC;

/* Ticks in a minute */
ticks_per_minute = GAME_TICKS_PER_SEC * 60;
*seconds = time % 60;
time /= 60;

/* Ticks in an hour */
ticks_per_hour = ticks_per_minute * 60;
*minutes = time % 60;
time /= 60;

h = time / ticks_per_hour;
m = (time - (h * ticks_per_hour)) / ticks_per_minute;
s = (time - ((h * ticks_per_hour) + (m * ticks_per_minute))) / GAME_TICKS_PER_SEC;

*hours = h;
*minutes = m;
*seconds = s;
*hours = time;
}

static void updateLatency()
Expand Down
4 changes: 1 addition & 3 deletions lib/gamelib/gtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ extern UDWORD realTime;
#define gameTime2 realTime

/// The difference between the previous and current gameTime.
/// FIXME This should be renamed from frameTime to deltaGameTime.
extern UDWORD deltaGameTime;
#define frameTime deltaGameTime
/// The difference between the previous and current graphicsTime.
extern UDWORD deltaGraphicsTime;
/// The difference between the previous and current realTime.
Expand Down Expand Up @@ -136,7 +134,7 @@ extern UDWORD getModularScaledRealTime(UDWORD timePeriod, UDWORD requiredRange);


/** Break down given time into its constituent components. */
extern void getTimeComponents(UDWORD time, UDWORD *hours, UDWORD *minutes, UDWORD *seconds);
void getTimeComponents(unsigned time, int *hours, int *minutes, int *seconds, int *milliseconds);



Expand Down
6 changes: 1 addition & 5 deletions lib/ivis_opengl/screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,13 @@ bool screenInitialise()
}
else // less than 1.5
{
#ifndef WZ_OS_MAC
// Check if VBO extension available for haxx
if (GLEW_VERSION_1_4 && GLEW_ARB_vertex_buffer_object)
{
debug(LOG_POPUP, _("OpenGL 1.5/2.0 is not supported by your system. Some things may look wrong. Please upgrade your graphics driver/hardware, if possible."));
// screen_EnableVBO should be called later, so nothing (quesoGLC) will call glewInit twice and flush our tweaks into void
}
else
#endif
{
debug(LOG_FATAL, _("OpenGL 1.4 + VBO extension is not supported by your system. The game requires this. Please upgrade your graphics drivers/hardware, if possible."));
exit(1);
Expand All @@ -173,10 +171,9 @@ void screenShutDown(void)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_ACCUM_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
}

// Make OpenGL's VBO functions available under the core names for implementations that have them only as extensions, namely Mesa.
// Make OpenGL's VBO functions available under the core names for drivers that support OpenGL 1.4 only but have the VBO extension
void screen_EnableVBO()
{
#ifndef WZ_OS_MAC
// no need if there is OpenGL 1.5 available
if (!GLEW_VERSION_1_5 && GLEW_ARB_vertex_buffer_object)
{
Expand All @@ -194,7 +191,6 @@ void screen_EnableVBO()
__glewMapBuffer = __glewMapBufferARB;
__glewUnmapBuffer = __glewUnmapBufferARB;
}
#endif
}

void screen_SetBackDropFromFile(const char* filename)
Expand Down
7 changes: 6 additions & 1 deletion lib/netplay/netplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ unsigned NET_PlayerConnectionStatus[CONNECTIONSTATUS_NORMAL][MAX_PLAYERS];
**/
static char const *versionString = version_getVersionString();
static int NETCODE_VERSION_MAJOR = 6;
static int NETCODE_VERSION_MINOR = 5;
static int NETCODE_VERSION_MINOR = 20120313;

bool NETisCorrectVersion(uint32_t game_version_major, uint32_t game_version_minor)
{
Expand Down Expand Up @@ -1378,6 +1378,11 @@ static bool NETprocessSystemMessage(NETQUEUE playerQueue, uint8_t type)
debug(LOG_ERROR, "Incomplete NET_SEND_TO_PLAYER.");
break;
}
if (sender > MAX_PLAYERS || receiver > MAX_PLAYERS)
{
debug(LOG_ERROR, "Bad NET_SEND_TO_PLAYER.");
break;
}
if ((receiver == selectedPlayer || receiver == NET_ALL_PLAYERS) && playerQueue.index == NetPlay.hostPlayer)
{
// Message was sent to us via the host.
Expand Down
Loading