Commit graph

17526 commits

Author SHA1 Message Date
Alex Grant Benedict
769f7ebe8b Some minor changes to build files to get this to build and run on macOS. 2021-11-22 17:41:02 -07:00
Alex Grant Benedict
1c6edca7f6 Add .DS_Store to .gitignore. 2021-11-19 15:32:12 -07:00
Alex Grant Benedict
851b8ce297 Minor fix for compiling on macOS. Fixes linker error for libSDL2main. 2021-11-19 15:30:22 -07:00
Tim Felgentreff
3dec8d3f74 Extend 0-hp non-solid decorations edge case to allow building under things. fixes war1gus #220 2021-11-13 20:12:31 +01:00
Tim Felgentreff
b3b19b6aa8 do not crash when unit to remove or transform no longer exists (fixes war1gus#213) 2021-11-13 17:04:40 +01:00
Tim Felgentreff
dbe38f171b only checksum stratagus.lua. this has at least the game version 2021-11-06 06:47:53 +01:00
Tim Felgentreff
02f839ab48
Merge pull request #362 from ipochto/reveal-map
Add "Known" map reveal mode.
2021-10-25 16:57:18 +02:00
alyokhin
7e54cb54dc Removed unnecessary #include 2021-10-23 20:12:40 +03:00
alyokhin
e473177c81 performance optimization: enable multithreading for legacy fog drawing 2021-10-08 23:31:43 +03:00
alyokhin
e9df4402d1 performance optimization: std::function replaced by pointer to func 2021-10-07 19:30:54 +03:00
alyokhin
e12839beb1 Cleanup 2021-10-06 19:15:29 +03:00
alyokhin
a91f102f6e Revert changes in SetFogOfWar 2021-10-06 11:20:13 +03:00
alyokhin
f40b8c862b Removed unused variables 2021-10-05 23:13:31 +03:00
alyokhin
9d6336e71f Minimap update: checking visibility for tile now realized via CFogOfWar::VisTable for both fog types. 2021-10-03 16:35:40 +03:00
alyokhin
a6554ba6a3 Swithing back to render legacy fog via AlphaFogG graphic set to fix broken color cycling. 2021-10-03 16:32:40 +03:00
alyokhin
f29acaaac4 Revert accidental comitted local changes for launch.json 2021-10-03 15:15:22 +03:00
alyokhin
f3b54bd9c7 Enabled initialization of minimap variables with nullptr 2021-10-02 19:30:17 +03:00
alyokhin
e5095c1509 Legacy fog gtraphic moved from CMap to CFogOfWar 2021-10-02 19:21:18 +03:00
alyokhin
9ad4af9dc8 Move legacy fog into the CFogOfWar. Refactor. 2021-10-02 18:36:01 +03:00
alyokhin
df43d03a49 Removed unnecessary AlphaFogG 2021-09-28 21:01:46 +03:00
alyokhin
733f4a7cdf Added comments, and fixed error message for reveal modes. 2021-09-28 19:48:37 +03:00
alyokhin
d3733c1c28 Added missed comments with CommandLog's 2021-09-27 18:53:00 +03:00
alyokhin
5ec7af292c Update RevealMap() for new modes 2021-09-24 17:45:40 +03:00
alyokhin
d2a20cf2a8 Added extended network messages for changing map reveal and fog of war. 2021-09-24 17:44:26 +03:00
alyokhin
0230118b05 Added reveal map modes 2021-09-24 17:27:23 +03:00
alyokhin
a12af1d6c0 Added missed check for NoFogOfWar option 2021-09-22 14:41:15 +03:00
alyokhin
2ac07d6330 Fixed potentially memory leak 2021-09-21 00:46:13 +03:00
alyokhin
8a71cc8c72 Comments and const correctness 2021-09-21 00:46:13 +03:00
alyokhin
858dbe9a24 Removed unneded anymore legacy global variables for fog color and opacity. 2021-09-21 00:46:08 +03:00
alyokhin
4340990d35 Added CGraphic's draw method with custom modifier for every pixel. Implemented pixel modifier for drawing legacy fog. Also added posibility to draw CGraphic to any surfaces (not only to TheScreen) 2021-09-21 00:44:13 +03:00
alyokhin
34a7033104 Implemented revealed/unseen levels of opacity for legacy fog. Switch to 2-staged rendering for legacy FOW (1: to Viewport's fog surface, 2: to theScreen). 2021-09-21 00:44:13 +03:00
alyokhin
fe03e98d87 Aded methods to get opacity setpoints for different layers of fog 2021-09-21 00:44:13 +03:00
alyokhin
71f285273f Disable of force explore for unseen tiles for map reveleation. 2021-09-21 00:44:13 +03:00
alyokhin
6cba540f86 Enable alpha blending for fog of war in the minimap. 2021-09-21 00:44:13 +03:00
alyokhin
585829ad6b Added possibility to set opacity for differen levels of fog in the mini map. 2021-09-21 00:44:13 +03:00
alyokhin
e5fb217f75 Const correctnes stuff. 2021-09-21 00:44:13 +03:00
alyokhin
408750bfec Implemented possibility to set opacity values for different levels of visibility. 2021-09-21 00:44:13 +03:00
alyokhin
8037c7c13d TODO comments 2021-09-21 00:44:13 +03:00
alyokhin
9a4a750894 Added posibility to get a single pixel value from an eased texture. 2021-09-21 00:44:13 +03:00
alyokhin
38126436eb Switched enhanced fog render to new BlitSurface with alpha blenfing. 2021-09-21 00:44:13 +03:00
alyokhin
0c2991664b Added blit surface with alpha blending function. 2021-09-21 00:44:13 +03:00
alyokhin
ff12391d01 Added upscale table for explored map (alternative way to reveal map) 2021-09-21 00:44:13 +03:00
Tim Felgentreff
ac4646cab3
Merge pull request #357 from psa-jforestier/accented-char
Fix accented chars when .po files are UTF8 encoded
2021-08-12 19:37:19 +02:00
Tim Felgentreff
47d849aa3f
Merge pull request #358 from psa-jforestier/Optim
Add optimization to not draw text when text is empty
2021-08-09 10:40:08 +02:00
Jerome FORESTIER
4f8ca8d1c3 fix memory leak on network game (Win32) 2021-08-03 18:42:45 +02:00
Jerome FORESTIER
4eb0d52749 Fix #359 2021-08-02 14:10:30 +02:00
Jerome FORESTIER
df318f52c6 Prevent a crash in Wargus.exe 2021-07-29 17:54:22 +02:00
Jerome FORESTIER
3604cc779d Add optimization to not draw text when text is empty (mostly in mission briefing) 2021-07-27 15:14:14 +02:00
psa-jforestier
f087a2e10b
Fix german sz 2021-07-26 17:53:21 +02:00
Jerome FORESTIER
1c70eb90a7 Fix accented char by using when .po files are UTF8 2021-07-20 22:04:04 +02:00