Commit graph

18082 commits

Author SHA1 Message Date
Tim Felgentreff
c62e1702e6 make full black in mngs be transparent 2022-06-01 17:17:28 +02:00
Tim Felgentreff
2541939ca2 fix exit when no map was created 2022-05-30 22:27:14 +02:00
Tim Felgentreff
ad332c9a87 Merge from rpi 2022-05-30 22:20:53 +02:00
Tim Felgentreff
c813be6ad0 hackaround for mng free bug 2022-05-30 22:20:15 +02:00
Tim Felgentreff
003e8b7bd0 fix lazy mng loading 2022-05-30 22:20:09 +02:00
Tim Felgentreff
911ef5b69d allocate tileset on map creation, not statically 2022-05-30 21:19:16 +01:00
Tim Felgentreff
56db32cbbb don't wait for vsync in benchmark mode 2022-05-30 09:46:03 +01:00
Tim Felgentreff
76dc64d3a5 fixup failing music callback - don't let music play failure spam the event queue 2022-05-30 09:45:49 +01:00
Tim Felgentreff
4a5a9dbf67 dispatch audio callbacks to the event loop 2022-05-25 14:51:23 +02:00
Tim Felgentreff
e533466092 make vendored lua also work on windows 2022-05-25 14:38:15 +02:00
Tim Felgentreff
f252352462 check automatic attacks/spells fewer times to avoid performance penalty of AStar each cycle 2022-05-24 06:09:58 +02:00
Tim Felgentreff
7127bd00ff make FogOfWar a global pointer, not a static global 2022-05-24 06:09:57 +02:00
Tim Felgentreff
66390ec1ae make unit manager a global pointer, not a static global 2022-05-24 06:09:55 +02:00
Tim Felgentreff
c09468468f add gprof linker flag 2022-05-24 06:09:53 +02:00
Tim Felgentreff
59f99651bb openmp cmake option 2022-05-23 09:25:04 +02:00
Tim Felgentreff
6fcd11966c explicit sound channel initialization 2022-05-23 09:24:55 +02:00
Tim Felgentreff
d727a529e2 fix omp_get_thread_num stub 2022-05-23 08:43:07 +02:00
Tim Felgentreff
987e3cb1bf also build shared libraries of vendored lua 2022-05-22 14:30:39 +02:00
Tim Felgentreff
9a00345e72 make compilation without openmp work 2022-05-22 14:30:36 +02:00
Tim Felgentreff
18fb94a0d0 fix a bunch of clang warnings 2022-05-22 14:30:25 +02:00
Tim Felgentreff
ae5d5099e6 Merge branch 'master' of https://github.com/Wargus/stratagus 2022-05-22 14:05:58 +02:00
Tim Felgentreff
ae3040a324 port Wyrmgus change to FormatNumber, which has better performance 2022-05-22 13:59:16 +02:00
Tim Felgentreff
ef0bf598b6 set callback immediately when playing, not delayed 2022-05-22 13:59:10 +02:00
Tim Felgentreff
09f1277971 nicer fps bar 2022-05-22 13:59:08 +02:00
Tim Felgentreff
52723290be fix a crash when freeing dynamically loaded sounds 2022-05-22 13:59:05 +02:00
Tim Felgentreff
d6fe1ca22e add simple benchmarking option 2022-05-22 13:59:03 +02:00
Tim Felgentreff
4314e16834 cache SDL colors for player colors at beginning of the game 2022-05-22 13:59:00 +02:00
Tim Felgentreff
6fa5d86b7b avoid runtime conversion to SDL_Color for font colors 2022-05-22 13:58:57 +02:00
Tim Felgentreff
e26e994a9c cache mapping of strings to filenames 2022-05-22 13:58:54 +02:00
Tim Felgentreff
4312aa16f4 make generated api better 2022-05-19 17:10:55 +02:00
Tim Felgentreff
bcb80ccb6f fix missing semicolon 2022-05-19 17:10:38 +02:00
Tim Felgentreff
3e72cff940 fix wrong assert 2022-05-19 17:10:29 +02:00
Tim Felgentreff
07ea0ce1c7 fix potential crash 2022-05-19 17:10:22 +02:00
Tim Felgentreff
77d7f1da6f add a todo 2022-05-11 19:59:44 +02:00
Tim Felgentreff
98811f8385 update generate_index script to create api definition 2022-05-11 19:59:33 +02:00
Tim Felgentreff
2d27c0a764 add assertions to avoid crash with wrongly indexed graphics 2022-05-02 21:40:39 +02:00
Tim Felgentreff
654a2409ef fix icon color palette swaps not being swapped back to default 2022-05-02 21:39:26 +02:00
Tim Felgentreff
cfa0906826 download magick executable 2022-04-30 10:28:18 +02:00
Tim Felgentreff
49207fc0fc add missing stargus json 2022-04-29 21:14:22 +02:00
Tim Felgentreff
94617fb1cc make midiplayer more fancy with pipes for communication 2022-04-29 09:01:28 +02:00
Tim Felgentreff
e4c4b29805 extract arg quoting for iwndows 2022-04-29 09:01:27 +02:00
Tim Felgentreff
cca28d94a6 fix ordering of units in transports by size 2022-04-28 06:40:27 +02:00
Tim Felgentreff
ef1c09dc23 keep units in transports sorted by size and give them space in UI 2022-04-27 22:32:06 +02:00
Tim Felgentreff
85c482f632 fix lazy loading of mng portraits 2022-04-27 22:13:48 +02:00
Tim Felgentreff
2cfbbed268 make construction lazy loaded as well 2022-04-27 21:28:54 +02:00
Tim Felgentreff
875f438778 deal with a few minor errors 2022-04-27 21:28:43 +02:00
Tim Felgentreff
3a0c61d6ad don't overallocate mng array 2022-04-27 21:28:37 +02:00
Tim Felgentreff
1be53f0dc9 make dynamic load the default to start up faster 2022-04-27 21:28:30 +02:00
Tim Felgentreff
4f62cfd8d8 allow dynamic load of sounds as well 2022-04-27 21:28:24 +02:00
Tim Felgentreff
fab3025b7a let sdl mixer free our sdl_rwops 2022-04-27 21:28:16 +02:00