Commit graph

17687 commits

Author SHA1 Message Date
Tim Felgentreff
9df43cc3d0 Revert "Revert "improve astar cleanup performance. thanks @Andrettin""
This reverts commit 740701089f.
2022-02-16 08:52:08 +01:00
Tim Felgentreff
9dd63b37fa Revert "Revert "don't return depots unconditionally""
This reverts commit 2616c95bf3.
2022-02-16 08:42:51 +01:00
Tim Felgentreff
8dfb7bcf67 fix two potential crashes 2022-02-16 08:42:39 +01:00
Tim Felgentreff
e1c16e1ef6 tweak map randomization 2022-02-16 08:42:31 +01:00
Tim Felgentreff
2616c95bf3 Revert "don't return depots unconditionally"
This reverts commit 8c3c9d9f8e.
2022-02-15 22:32:27 +01:00
Tim Felgentreff
740701089f Revert "improve astar cleanup performance. thanks @Andrettin"
This reverts commit c81abe99a2.
2022-02-15 22:32:07 +01:00
Tim Felgentreff
e4f2898b91 expose Randomize map to lua 2022-02-15 22:31:45 +01:00
Tim Felgentreff
f23cb67854 add import 2022-02-15 20:53:22 +01:00
Tim Felgentreff
e067fe7cf4 make randomize editor feature configurable 2022-02-15 09:58:23 +01:00
Tim Felgentreff
7d846feab9 be backwards compatible with war1gus colorsets 2022-02-15 09:49:40 +01:00
Tim Felgentreff
cf6266c8db tweak map randomize 2022-02-15 09:04:37 +01:00
Tim Felgentreff
3e71c37019 fix start location sticking to cursor 2022-02-15 08:44:37 +01:00
Tim Felgentreff
8c3c9d9f8e don't return depots unconditionally 2022-02-15 08:35:41 +01:00
Tim Felgentreff
c81abe99a2 improve astar cleanup performance. thanks @Andrettin 2022-02-15 08:35:26 +01:00
Tim Felgentreff
33cc4f880a fix memory leak, thanks @Andrettin 2022-02-15 06:36:04 +01:00
Tim Felgentreff
1b95dd2373 first attempt at a "randomizer" tool for the editor 2022-02-14 22:25:55 +01:00
Tim Felgentreff
4e402a7721 fix a crash in select script functions 2022-02-14 20:08:40 +01:00
Tim Felgentreff
da3703e90a fix a class of potential NPEs 2022-02-14 19:35:19 +01:00
Tim Felgentreff
45393ef64c add ability to define additional colors and set custom unit color 2022-02-11 22:08:07 +01:00
Tim Felgentreff
c5baa3dce7 add ability to set completely custom Colors for a unit 2022-02-10 22:45:18 +01:00
Tim Felgentreff
5423919e09 add a simple function to copy unit buttons to another unit 2022-02-09 16:20:00 +01:00
Tim Felgentreff
8fc9f1f8b7 Make max messages configurable with SetMaxMessageCount and rework repeated message handling 2022-02-09 11:03:10 +01:00
Tim Felgentreff
ae83587065 only show group if ShowOrders is true 2022-02-07 08:32:46 +01:00
Tim Felgentreff
274448c00f add option to indicate damage in selection rect 2022-02-07 08:32:33 +01:00
Tim Felgentreff
075d6cb66c fix one more potential crash with font rendering 2022-02-05 17:45:47 +01:00
Tim Felgentreff
1526b0dce7 a bit more configurability for the decoration bar 2022-02-05 17:31:01 +01:00
Tim Felgentreff
085a7804f9 allow using bool flags for enable/disable decoration 2022-02-02 20:48:26 +01:00
Tim Felgentreff
4b21fc9306 try to clean up a bit better 2022-02-02 14:00:52 +01:00
Tim Felgentreff
2b5b820bab deselect for list boxes 2022-02-02 14:00:35 +01:00
Tim Felgentreff
8bb7c9f2fe fix scaled cursor hot pos 2022-02-02 09:47:57 +01:00
Tim Felgentreff
78b9b09f47
Merge pull request from Wargus/hardwarecursor
Hardware cursor option
2022-02-01 22:23:44 +01:00
Tim Felgentreff
66fa7bca72 make hardware cursor a preference 2022-02-01 22:17:19 +01:00
Tim Felgentreff
cb94928d3b fix mouse event coordinates for vertical pixel stretching 2022-02-01 21:52:32 +01:00
Tim Felgentreff
faeb1044f1 fix cursor drawing, now only the offset may be wrong 2022-02-01 21:52:32 +01:00
Tim Felgentreff
98fe0c87a8 use sdl hardware cursor to decouple the cursor speed from the game speed 2022-02-01 21:52:32 +01:00
Tim Felgentreff
9f4eddb375 fix walls disappearing when changing surroundings 2022-01-31 23:01:23 +01:00
Tim Felgentreff
3dff36288c add button check units-nor and fix CopyUnitType 2022-01-30 20:00:11 +01:00
Tim Felgentreff
8b4a2fb064 fix a minor crash 2022-01-30 14:37:53 +01:00
Tim Felgentreff
2a55642ed8 add animated sprite decoration 2022-01-30 14:14:49 +01:00
Tim Felgentreff
e9b93f09cc draw missile cliptotarget centered on top left corner of target 2022-01-29 20:07:56 +01:00
Tim Felgentreff
30eb5371be Merge branch 'master' of https://github.com/Wargus/stratagus 2022-01-29 14:41:43 +01:00
Tim Felgentreff
79f432a207 allow setting NumBounces for missile-clip-to-target 2022-01-29 14:41:30 +01:00
Tim Felgentreff
39fa8bdd82 fix my bug that caused the game to weirdly pause 2022-01-27 21:00:14 +01:00
Tim Felgentreff
23b0d64a15
Merge pull request from SimoneStarace/master
ChangeUnitsOwner now can be applied for specific units.
2022-01-27 20:57:38 +01:00
Tim Felgentreff
6b237d0ea1 rename mobdebug.h, not a real header 2022-01-27 20:29:20 +01:00
Tim Felgentreff
c62d17536d update codepoint mapping to allow multichar subst 2022-01-27 13:00:32 +01:00
Tim Felgentreff
272a2136bf avoid useless utf8 work for numbers 2022-01-27 10:34:15 +01:00
Tim Felgentreff
ec07626654 better docs for SetFontCodePage 2022-01-27 10:34:03 +01:00
Simone Starace
77c0984711
Merge branch 'Wargus:master' into master 2022-01-26 23:33:50 +01:00
Simone Starace
bca17dafe7 Changed the body of function ChangeUnitsOwner. 2022-01-26 23:31:29 +01:00