f7783fb4bb
Fix biome-specific mappreviews in 7f602037ba
for zipped mods, refs #4962 .
...
Add TextureExists to avoid needless redundant hardcoding of the
filenames.
Remove mapBiome.Preview from gamedescription.js, obsolete following
8cde469501
.
Differential Revision: https://code.wildfiregames.com/D1583
Accepted By: Vladislav
This was SVN commit r21859.
2018-08-05 21:50:00 +00:00
4c73614955
In preparation of renaming and grouping main.cpp shutdown variables:
...
Declare the g_GameRestarted hack from 12f0720f31
in main.cpp, because it
is main.cpp and Game.cpp who provide it's value.
Move the comment so that the connotation becomes clear when reading
main.cpp.
Remove the extern declaration introduced to the Renderer in fb035d08e3
that became obsolete with ed7c66eb82
.
This was SVN commit r21816.
2018-05-08 09:24:16 +00:00
13e1702777
Add missing ScriptInterface includes to
...
JSInterface_L10n.cpp from d6db5a466d
,
JSInterface_Renderer.cpp and JSInterface_GUITypes.cpp from 4b1297b328
,
JSInterface_VisualReplay.cpp from b830233498
,
JSInterface_Game.cpp from 5f8be8e0c6
,
JSInterface_Simulation.cpp from 921c5515a6
,
JSInterface_Debug.cpp from d6cb9c845b
,
JSInterface_Main.cpp from 486aec18d4
, refs #4772 ,
JSInterface_Mod.cpp where it was incorrectly removed in af03c72f76
.
Refs D1470.
Sort includes alphabetically, add recent Coding Convention macro
comments.
This was SVN commit r21789.
2018-04-27 16:48:44 +00:00
7ecd1d2c34
Clean some forward declarations.
...
Remove unused (wrong copy&paste) includes from 86fcf0de8c
in
JSInterface_ModIo.*, initially hinted at by leper.
Remove a forward declaration in JSInterface_Console.h that should have
become an include with 4b1297b328
, because CxPrivate must be declared
before its reference too.
Remove a forward declaration in JSInterface_Mod.h from 64bfa089af
that
should have been the include added in af03c72f76
which in turn omitted
to remove this forward declaration.
Remove a forward declaration in Renderer.h that became unused with
1ddd24bb8c
.
Differential Revision: https://code.wildfiregames.com/D1470
Reviewed By: Itms
This was SVN commit r21788.
2018-04-27 16:06:42 +00:00
cb048b4738
A little cleanup of the PatchRData.cpp.
...
This was SVN commit r21612.
2018-03-24 11:20:57 +00:00
d7220c3ebb
Remove debug lines
...
This was SVN commit r21499.
2018-03-10 22:45:31 +00:00
c9fe940401
Fix an oversight in cc67d54aeb
...
Reviewed by: Itms,
Tested by: Angen,
Differential: https://code.wildfiregames.com/D1372
This was SVN commit r21498.
2018-03-10 22:42:01 +00:00
cc67d54aeb
Fix compiler warnings on VS 2015, refs #3439 , refs #5069 .
...
Patch By: Stan
Reviewed By: Itms, vladislavbelov
Differential Revision: https://code.wildfiregames.com/D1262
This was SVN commit r21480.
2018-03-10 09:58:53 +00:00
b8c488b63a
Added multiples UVs to animated model
...
Reviewed By: wraitii, Stan
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D448
This was SVN commit r21291.
2018-02-20 21:33:02 +00:00
2c8b78ddaa
Option to disable fog effects.
...
Fixes #4626
Patch By: dp304
This was SVN commit r20584.
2017-12-04 15:54:24 +00:00
247bde356c
Reload water shaders too when changing shader settings.
...
Refs #4626
Patch By: dp304
This was SVN commit r20583.
2017-12-04 15:51:20 +00:00
99d486c1d7
Allow models using alpha-blending (transparent models) to be silhouette casters.
...
This change ahead of D965, where fauna become silhouette casters, and
several fauna animals are transparent models.
Reviewed By: wraitii
Patch By: temple
This was SVN commit r20569.
2017-12-03 10:14:16 +00:00
71a5ebe1c9
Adds a missed initialisation in 7e239f38a3
.
...
This was SVN commit r20382.
2017-10-30 19:32:16 +00:00
7e239f38a3
Adds a wireframe mode to the water rendering.
...
Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D769
This was SVN commit r20378.
2017-10-30 00:02:29 +00:00
455ab4b9e2
Fix some format specifiers in debug strings. Reviewed by leper.
...
Differential Revision: https://code.wildfiregames.com/D909
This was SVN commit r20190.
2017-09-16 15:28:01 +00:00
5c01b50ca4
Add FALLTHROUGH, which in the best case is just [[fallthrough]].
...
Note that this does not fix the warnings in AtlasObjectXML, someone
interested
in fixing those should check whether using ICU would be a nicer
solution.
Reviewed By: echotangoecho
Differential Revision: https://code.wildfiregames.com/D740
This was SVN commit r20095.
2017-09-01 20:04:53 +00:00
9defd11440
Pass ScriptInterface as a const ref where possible.
...
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D739
This was SVN commit r20028.
2017-08-24 00:32:42 +00:00
1ddd24bb8c
Remove unused Renderer function from 12e2428495
.
...
Refs #2137
Reviewed By: Vladislav
This was SVN commit r20019.
2017-08-21 17:05:45 +00:00
6f9bf55ac5
Change the shadow map quality without restarting the match.
...
Differential Revision: https://code.wildfiregames.com/D804
Refs #4351
Patch By: Vladislav
This was SVN commit r20011.
2017-08-21 01:10:56 +00:00
04f2209b50
Rename WaterUgly setting to WaterEffects in order to remove the invertedboolean workaround of the options page.
...
Differential Revision: https://code.wildfiregames.com/D815
Refs #3737
Tested By: Stan
This was SVN commit r20010.
2017-08-21 00:09:25 +00:00
8df36bace4
Shadow map quality option.
...
Differential Revision: https://code.wildfiregames.com/D745
Fixes #4351
Refs #743
Patch By: Vladislav
This was SVN commit r20001.
2017-08-19 12:46:05 +00:00
c67d79d9f3
Recompute water graphics when changing the water level and upon deserialization to fix a graphical (non-simulation) OOS on rejoin.
...
Differential Revision: https://code.wildfiregames.com/D638
Refs #4596
Contains a fix mentioned by leper.
This was SVN commit r19862.
2017-07-01 04:15:49 +00:00
be2b2faa77
Properly apply texture to the last quad of an overlay textured line. Reviewed by vladislavbelov.
...
Fix #4617 .
Differential Revision: https://code.wildfiregames.com/D663
This was SVN commit r19833.
2017-06-26 13:04:21 +00:00
d5caf97185
Fix Valgrind complaints in CRenderer by properly intializing some members values introduced in ab30e0d4fb
. Refs #3922 , #4492 . Patch by Sandarac. Reviewed by vladislavbelov.
...
Differential Revision: https://code.wildfiregames.com/D536
This was SVN commit r19800.
2017-06-18 14:52:54 +00:00
f794a14610
Declare variable when actually initialized.
...
Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D417
This was SVN commit r19508.
2017-05-04 06:53:21 +00:00
6ee830068a
Print the name of OpenGL errors when they occur.
...
Patch by vladislavbelov
Differential Revision: https://code.wildfiregames.com/D313
This was SVN commit r19496.
2017-05-01 07:19:39 +00:00
4523c50850
Fix a vertex shader data pielup in the actor editor. It was reloading the shaders far too often.
...
Patch by Echotangoecho.
Differential Revision: https://code.wildfiregames.com/D93
This was SVN commit r19346.
2017-03-25 07:44:31 +00:00
9f50bf3f1e
Only dereference cmpWaterManager if it is non-null.
...
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D259
This was SVN commit r19340.
2017-03-24 21:32:49 +00:00
417c84870c
Actually remove trailing tabs from source/.
...
This was SVN commit r18991.
2016-11-23 14:09:58 +00:00
6149dd3841
Actually remove trailing whitespace for non-header files as well.
...
This was SVN commit r18989.
2016-11-23 13:02:58 +00:00
944ba16eb4
End source files with a newline.
...
This was SVN commit r18988.
2016-11-23 11:27:54 +00:00
b18f74da44
Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/.
...
This was SVN commit r18987.
2016-11-23 11:18:37 +00:00
948d2a4635
Clear particle emitters when ending a game so they don't leak into new games. Patch by Vladislav, fixes #4111 .
...
This was SVN commit r18936.
2016-11-14 17:16:59 +00:00
ead8436b3d
Improve water rendering, partly based on a patch by aeonios, including:
...
-increase the size of the refraction and reflection texture
-blur the refraction map depending on depth
Fixes #3781
This was SVN commit r18443.
2016-06-26 16:54:58 +00:00
7c21a0cf8e
Header cleanup: profile.h is no longer unnecessarily included in scriptinterface.h but rather in the required .cpp files
...
This was SVN commit r18417.
2016-06-21 10:33:11 +00:00
1a66f510d0
Use const T& for parameters of some types in script-exposed native functions
...
Using references matches the C++ coding style better and should improve
performance a bit in theory. It avoids 2 copies of T in case of the
functions registered with RegisterFunction (mainy used in the GUI). It
should also avoid one or two copies in case of
DEFINE_INTERFACE_METHOD_X, which is used in the simulation, but I
haven't bothered to count it there exactly.
It is now predefined which types have to be passed by const reference
and which are passed by value. Note that references can't be used as
out-parameters (to return multiple values to JS). This hasn't worked
before either and probably never will.
This was SVN commit r17696.
2016-01-23 15:17:56 +00:00
fb92761c92
Use explicit types instead of auto.
...
This was SVN commit r17642.
2016-01-13 00:42:55 +00:00
543472b77b
Optimization of isBoxVisible + cleanup, fixes #3712
...
This was SVN commit r17561.
2015-12-28 16:27:31 +00:00
814cdd9524
Tie tangent generation with preferGLSL setting for convenience since that setting was not really useful. Fixes #2506 . Patch by fabio.
...
This was SVN commit r17325.
2015-11-29 15:44:22 +00:00
432df9b38e
Use two range based for loops to fix two TODOs.
...
This was SVN commit r17303.
2015-11-28 08:27:42 +00:00
9357cce112
Math is hard
...
This was SVN commit r17242.
2015-11-12 17:32:33 +00:00
52443dfe80
Fix an erroneous ENSURE in PatchRData and move it where it will be very slightly clearer. Fixes #3598
...
This was SVN commit r17240.
2015-11-12 17:22:44 +00:00
558d43bac5
Replace some functor structs with lambdas, closures or range-based fors.
...
This was SVN commit r16923.
2015-08-19 03:33:04 +00:00
8bfe16cac8
Use in-place construction.
...
This was SVN commit r16894.
2015-07-29 23:44:17 +00:00
c5eb9b7bb7
Range-based for for VfsPath loops.
...
This was SVN commit r16893.
2015-07-29 23:44:12 +00:00
da48c8c26f
Some const refs and one const function.
...
This was SVN commit r16882.
2015-07-27 01:08:25 +00:00
6581796103
New long-range pathfinder.
...
Based on Philip's work located at
http://git.wildfiregames.com/gitweb/?p=0ad.git;a=shortlog;h=refs/heads/projects/philip/pathfinder
Includes code by wraitii, sanderd17 and kanetaka.
An updated version of docs/pathfinder.pdf describing the changes in
detail will be committed ASAP.
Running update-workspaces is needed after this change.
Fixes #1756 .
Fixes #930 , #1259 , #2908 , #2960 , #3097
Refs #1200 , #1914 , #1942 , #2568 , #2132 , #2563
This was SVN commit r16751.
2015-06-12 18:58:24 +00:00
14bfbbf9d4
Allow sprites to have color multiplication, which allows player-colored bars. Patch by Vladislav. Fixes #3233
...
This was SVN commit r16715.
2015-06-04 12:16:52 +00:00
e638af5422
Clean up some unused variables and assignments.
...
This was SVN commit r16684.
2015-05-26 15:40:07 +00:00
0a44d24c96
Flip the overlay sprites face around to show the non-mirrored side. Now sprites are rendered correctly (which should have happened in d4794b5474
).
...
This was SVN commit r16617.
2015-05-03 15:55:17 +00:00