Commit graph

16831 commits

Author SHA1 Message Date
Tim Felgentreff
11589fe432 re-add lost mng cpp 2020-04-17 09:59:00 +02:00
Tim Felgentreff
937a6d447a add forgotten cmake modules 2020-04-17 09:27:33 +02:00
Tim Felgentreff
3adf7599c5 fix alpha of fog of war 2020-04-16 16:40:59 +02:00
Tim Felgentreff
f3eb06e12a use SDL2_image instead of libpng 2020-04-16 15:08:18 +02:00
Tim Felgentreff
da421e2ddf remove debug code 2020-04-16 07:59:01 +02:00
Tim Felgentreff
c7b725bb11 we no longer need the Viewport size 2020-04-16 07:59:01 +02:00
Tim Felgentreff
e884ceece2 fix resizing by adding an indirection to the surface for graphics 2020-04-16 07:59:01 +02:00
Tim Felgentreff
800c25b5fa remove more dead code 2020-04-16 07:59:01 +02:00
Tim Felgentreff
883d6681a8 init video after loading settings 2020-04-16 07:59:01 +02:00
Tim Felgentreff
0fe51a366a avoid out-of-bounds buffer write 2020-04-16 07:59:01 +02:00
Tim Felgentreff
dd9d287945 delete all OpenGL, GLES, Fluidsynth, mikmod, touchscreen, and mng code. these are all handled by SDL/SDL_mixer 2020-04-16 07:59:01 +02:00
Tim Felgentreff
6b73fd7b97 use SDL_mixer to handle all our sound needs, and delete all the custom code 2020-04-16 07:59:01 +02:00
Tim Felgentreff
d3e33a8840 always adjust for viewport size in mouse coords now 2020-04-16 07:59:01 +02:00
Tim Felgentreff
0c530a7e6a make sure not to corrupt memory here 2020-04-16 07:59:01 +02:00
Tim Felgentreff
22c823f0aa WIP: the sound invariants changed, need to investigate. they are passing a new
short[] buffer into the SDL audio conversion, but the multiplier says its 8x
larger than before, short is only 2x larger than char. not clear who wrote this
this way and why
2020-04-16 07:59:01 +02:00
Tim Felgentreff
fa05f65bac debug a bit 2020-04-16 07:59:01 +02:00
Tim Felgentreff
b8ded8a695 fix compilation 2020-04-16 07:59:01 +02:00
Tim Felgentreff
af307f9f17 Merge remote-tracking branch 'origin/master' into galtgendo/sdl2 2020-04-16 07:57:37 +02:00
Tim Felgentreff
da8975814d fix compilation 2020-04-13 10:29:48 +02:00
Tim Felgentreff
f83fc7857d do not allow lua scripts to enable ZoomNoResize if the commandline forced opengl off 2020-04-12 12:07:47 +02:00
Tim Felgentreff
8627ad20ad
Merge pull request #269 from mxdamien/master
Potentially use goal position of previous command as starting point f…
2020-02-22 00:55:53 +01:00
mxdamien
81627adb34 Potentially use goal position of previous command as starting point for patroling 2020-02-21 22:18:14 +01:00
Tim Felgentreff
749818369a
Merge pull request #267 from mxdamien/master
Increase buffersize due to possible overflow
2020-02-13 22:54:38 +01:00
mxdamien
f51a9b9f69 Increase buffersize due to possible overflow 2020-02-13 22:09:29 +01:00
Tim Felgentreff
607fe40ef1
Merge pull request #264 from ilwar2/master
opengl crash on video playback fixed
2019-12-03 15:01:50 +01:00
ilwar2
032ebb89e3
fixed 2019-12-03 12:05:06 +03:00
ilwar2
819dcf90aa
remove fprintf 2019-12-03 12:02:11 +03:00
iL
e0d0ac79ad opengl crash on video playback fixed 2019-12-02 17:32:49 +03:00
Tim Felgentreff
e5de46d73c
Update README.md 2019-10-18 06:47:10 +02:00
Tim Felgentreff
ff7777dbe3
Merge pull request #259 from talas/selfspell
allow self-cast if enabled, default is disabled
2019-09-25 15:38:31 +02:00
Tim Felgentreff
392e04a46d
Merge pull request #257 from talas/skirmisher
add flag for unittypes that should snipe from distance
2019-07-18 09:01:31 +02:00
Tim Felgentreff
25cc4d43fb
Merge pull request #258 from talas/harvester
fixes for terrain-harvester and maybe lose-resources
2019-07-17 09:06:18 +02:00
Tim Felgentreff
53e5bfccb1
Merge pull request #261 from talas/morelua
Add some more lua bindings
2019-07-16 17:59:04 +02:00
Talas
49916e5f58 allow setting TTL, Summoned and explore from lua
First two useful to create summoned units from lua
Second can be used to have AI use the autoexplore action
2019-07-16 13:57:50 +02:00
Talas
8118d72598 add OnReady luacallback for units
called when the unit is finished training/built
2019-07-16 13:57:50 +02:00
Talas
94bf1b85df allow self-cast if enabled, default is disabled 2019-07-16 13:45:43 +02:00
Talas
29f3a349e9 fixes for terrain-harvester and maybe lose-resources 2019-07-16 13:21:42 +02:00
Talas
90d2272556 add flag for unittypes that should snipe from distance 2019-07-15 16:22:16 +02:00
Tim Felgentreff
6270a585c0
Merge pull request #256 from talas/small_fixes
Various small ui/gfx/sound fixes
2019-07-14 18:51:15 +02:00
Talas
7424440568 Various small ui/gfx/sound fixes
* Don't let pointtopoint missiles wobble
* Don't spam "Game Resumed" from SDL
* Hack to make mana visible for units on bottom row
* Play transport docking sound more reliably
* Play random building noises
* Don't show wood being cut under fog of war
* Fix wood not updated by ally vision
2019-07-14 17:23:04 +02:00
Tim Felgentreff
663073c55d
Merge pull request #255 from talas/autoexplore
add a simple explore action
2019-07-12 07:14:20 +02:00
Tim Felgentreff
7ec42b45c9
Merge pull request #254 from talas/demo_mode
add minimal support for attract/demo mode
2019-07-12 07:10:06 +02:00
Talas
957cb1a591 add IsDemoMode to clean up UI code 2019-07-07 16:29:42 +02:00
Talas
accaaf56e1 add a simple explore action
flies around randomly, much room for improvement
2019-07-07 15:38:29 +02:00
Talas
b8a1646c76 add minimal support for attract/demo mode
in wargus, this means watching 2 computers fight eachother.
any interaction will end the demo.
2019-06-30 18:47:16 +02:00
Tim Felgentreff
9f36458389
Merge pull request #251 from talas/recurse_editor
let EditorChangeSurrounding recurse until done
2019-06-26 18:38:14 +02:00
Talas
ef6ba2c91c let EditorChangeSurrounding recurse until done
Fixes tiling issue when placing forest in dark water and
similar situations involving dark water, dark grass or forests.
May cause some organic growth of coasts.
2019-06-26 16:06:13 +02:00
DinkyDyeAussie
c2ba0506fc
Colorcycling change
Slowed down color cycling to better mimic original Warcraft 2 speed.
2019-06-26 05:12:48 +10:00
Tim Felgentreff
3ed9443edd
Merge pull request #250 from talas/attack_autocast
enable autocast during attack-move
2019-06-21 18:36:27 +02:00
Talas
3be1864d2a enable autocast during attack-move
Feature request from wargus issue #175
2019-06-21 17:55:29 +02:00