Commit graph

18001 commits

Author SHA1 Message Date
alyokhin
c544a35919 Added elevation level into the map field 2022-10-07 19:59:54 +03:00
alyokhin
db2983bce8 Enabled highground check for field of view calculation 2022-10-07 19:59:54 +03:00
Tim Felgentreff
498e03b088
Merge pull request #419 from ipochto/fix/DrawMapBackground
Additional fix for broken map rendering in cases when map is revealed.
2022-10-07 18:52:22 +02:00
alyokhin
04b5d51222 Additional fix for broken map rendering in cases when map is revealed. 2022-10-07 16:46:10 +03:00
Tim Felgentreff
6ecfc7599c
Merge pull request #417 from ipochto/fix/DrawMapBackground
Fixed broken map rendering in cases when map is revealed
2022-10-01 18:02:11 +02:00
alyokhin
fa13f46277 Fixed broken map rendering in cases when map is revealed 2022-10-01 16:23:54 +03:00
Tim Felgentreff
18fad73cfb
Merge pull request #415 from bmwiedemann/date
Allow to override build date with SOURCE_DATE_EPOCH
2022-09-26 08:59:17 +02:00
Bernhard M. Wiedemann
56c2d998d9 Allow to override build date with SOURCE_DATE_EPOCH
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.

This patch was done while working on reproducible builds for openSUSE.
2022-09-25 12:08:55 +02:00
Tim Felgentreff
49f4e88cde fix build on windows 2022-09-09 07:32:06 +02:00
Tim Felgentreff
56f3be8612 add lost find_package for lua 2022-09-09 07:15:51 +02:00
Tim Felgentreff
bae33bc0a7 Merge branch 'master' of https://github.com/Wargus/stratagus 2022-09-09 07:11:23 +02:00
Tim Felgentreff
c13ff9d3c0 expose remaining path length to animation scripts 2022-09-07 19:54:04 +02:00
Tim Felgentreff
3ef7bfd135 basic animated rotation, as a purely cosmetic thing, but exposed to unit animation scripts 2022-09-05 19:45:14 +02:00
Tim Felgentreff
a2964d4e78 refactor common waiting code out 2022-09-04 19:54:51 +02:00
Tim Felgentreff
b971410c01 add lua function to turn a unit towards another unit or location 2022-09-04 15:12:18 +02:00
Tim Felgentreff
65012977b0 allow query of the Summoned value of a unit 2022-09-04 15:12:03 +02:00
Tim Felgentreff
2b5564469b allow MoveUnit to also set IX/IY displacement 2022-09-04 15:11:50 +02:00
Tim Felgentreff
7b6f9899a4 add a bool flag for units that do not turn towards their enemy 2022-09-04 15:11:33 +02:00
Tim Felgentreff
4c748b427a make personal space configurable via lua 2022-09-03 16:21:14 +02:00
Tim Felgentreff
a6024a94d0
Merge pull request #413 from AMDmi3/docs
Install docs which do not depend on doxygen regardless of doxygen availability
2022-08-31 07:23:36 +02:00
Tim Felgentreff
7e170b46e6
Merge pull request #412 from AMDmi3/isystem
Add header paths for system libraries as SYSTEM
2022-08-31 06:35:10 +02:00
Dmitry Marakasov
df008bc404 Add header paths for system libraries as SYSTEM
This ensures correct include ordering and hides warnings coming
from unrelated code. Specifically, it fixes build on FreeBSD,
which otherwise fails due to to problem in lcms code:

    In file included from .../stratagus-3.3.1/src/action/action_defend.cpp:45:
    In file included from .../stratagus/work/stratagus-3.3.1/src/include/ui.h:56:
    In file included from .../stratagus-3.3.1/src/include/viewport.h:34:
    In file included from .../stratagus-3.3.1/src/include/fow.h:39:
    In file included from .../stratagus-3.3.1/src/include/video.h:228:
    In file included from /usr/local/include/libmng.h:385:
    In file included from /usr/local/include/libmng_types.h:181:
    /usr/local/include/lcms.h:1238:29: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    typedef int (* _cmsSAMPLER)(register WORD In[],
                                ^~~~~~~~~
2022-08-31 00:22:48 +03:00
Dmitry Marakasov
1976a2cef3 Install docs which do not depend on doxygen regardless of doxygen availability 2022-08-31 00:14:05 +03:00
Tim Felgentreff
44ddc09d76 only move units out onto their own tile by small steps 2022-08-30 22:29:02 +02:00
Tim Felgentreff
e1f99e1daf only let units position themselves freely when they were simply moving 2022-08-30 00:36:26 +02:00
Tim Felgentreff
348b05d88e Merge branch 'master' of github.com:Wargus/stratagus 2022-08-29 23:13:45 +02:00
Tim Felgentreff
4744bb49f5 implement still units positioning themselves on their own tile 2022-08-29 23:13:33 +02:00
Tim Felgentreff
2627e712e3 implement movement in formation 2022-08-29 23:13:23 +02:00
Tim Felgentreff
ef6e0431e8 fix extraction via launcher on macos 2022-08-29 23:13:12 +02:00
Tim Felgentreff
a1c0e11449
Merge pull request #411 from andreas-volz/master
Fix #410
2022-08-29 11:53:13 +02:00
Andreas Volz
2d926cf70b Merge branch 'master' of github.com:andreas-volz/stratagus 2022-08-29 11:33:52 +02:00
Andreas Volz
8042fddf46 fix the depot pointer crash 2022-08-29 11:33:32 +02:00
Tim Felgentreff
f5967815aa default to vendored libs on wargus + war1gus in vscode 2022-08-27 22:17:36 +02:00
Tim Felgentreff
9d791c0f1c
Merge pull request #407 from Wargus/tim/bundled-deps
Vendor all dependencies and allow statically linking them all
2022-08-27 21:56:55 +02:00
Tim Felgentreff
2464f98dbe vendor all dependencies and allow statically linking them all 2022-08-27 21:20:34 +02:00
Tim Felgentreff
da722465e7 make timidity cfg work with older sdl versions 2022-08-27 21:16:53 +02:00
Tim Felgentreff
52d31f6e17 make SDL timidity pick up gus patches in game or executable directory, prefer timidity over native if available 2022-08-27 21:08:06 +02:00
Tim Felgentreff
8123f12629 fix crash on debug grid drawing without minitiles 2022-08-27 21:07:03 +02:00
Tim Felgentreff
70d61a354d fix compile error 2022-08-27 21:06:57 +02:00
Tim Felgentreff
7466c8d043 fix build on macos. fixes #405 2022-08-27 11:50:49 +02:00
Tim Felgentreff
29f76cd82b add missing include. fixes #409 2022-08-27 08:12:07 +02:00
Tim Felgentreff
18df75d8da support lua callbacks for building rules 2022-08-26 23:50:04 +02:00
Tim Felgentreff
0c04d68f03 fix crash when only one mng portrait is available 2022-08-26 23:14:12 +02:00
Tim Felgentreff
e974e2ef3f make it a preference if allies can return goods to each others bases, off by default 2022-08-25 09:38:29 +02:00
Tim Felgentreff
15986db050 refactor game speed to provide a constant frame rate 2022-08-24 20:29:40 +02:00
Tim Felgentreff
699b44e46f Merge branch 'master' of https://github.com/Wargus/stratagus 2022-08-12 15:28:10 +02:00
Tim Felgentreff
3ba7987ffe Revert "allow subtile movement to end a move, reset the unbreakable flag in that case"
This reverts commit 7fbd7409db75e61264d177f1a9462009c521b9ab.
2022-08-11 20:34:23 +02:00
Tim Felgentreff
ecf08c3e40 use template specialization to ensure we don't hurt performance for map drawing when graphical/logical tile size is the same 2022-08-11 20:34:18 +02:00
Tim Felgentreff
6deef6e765 allow subtile movement to end a move, reset the unbreakable flag in that case 2022-08-11 20:34:12 +02:00
Tim Felgentreff
37511d0d8b allow logical tiles (for unit sizes and movement) to be smaller than graphical tiles 2022-08-11 20:34:04 +02:00