elexis
4f01db4831
Split TurnManager classes into individual files per class. Patch by echotangoecho, fixes #4095 .
...
Remove the "Net" prefix from the non-networked classes.
Use variadic macros and mark the client turnmanager as NONCOPYABLE.
Differential Revision: D16
Reviewed By: leper
This was SVN commit r19165.
2017-01-24 02:04:50 +00:00
wraitii
8fec942e8a
Fix Atlas under macOS Sierra.
...
We were polling SDL messages from two different threads (by mistake),
and Sierra now refuses to do that.
Tested by Stan, Itms, Fatherbushido, and discussed with Philip for the
code change itself.
Fixes #4408 .
Differential Revision: https://code.wildfiregames.com/D42
This was SVN commit r19160.
2017-01-21 09:54:08 +00:00
leper
be1a205f91
Add support for const methods in components and make those that can be const const.
...
Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D75
This was SVN commit r19156.
2017-01-20 02:25:19 +00:00
elexis
678e082230
Remove the "quit" simulation command and restrict the "set-shading-color" simulation command to AIs,
...
since they are only useful for AI debugging and counterproductive in
multiplayer mode, refs #3551 .
Instead, enable AI developers to exit the game from a new AI API
command,
allowing to batch simulate matches. Refs #2755 .
Differential Revision: D65
Reviewed By: leper
Consulted: mimo
This was SVN commit r19155.
2017-01-19 14:45:32 +00:00
wraitii
b3b47c1718
Avoid recreating the dirtiness grid every turn by swapping. Significantly reduces the number of allocations, and slight speedup (particularly on larger maps). Reviewed by Leper.
...
Differential Revision: https://code.wildfiregames.com/D70
This was SVN commit r19149.
2017-01-17 07:24:41 +00:00
wraitii
0a6a42321d
Improve cache efficiency of CcmpPathfinder::UpdateGrid substantially. On very large maps, this can be a very substantial improvement (I have measured up to 30ms)
...
This was SVN commit r19146.
2017-01-16 10:41:35 +00:00
wraitii
ad76352cef
Prevent the AI manager from copying the pathfindinder dirtiness grid every turn.
...
Review by Itms
Differential Revision: https://code.wildfiregames.com/D25
This was SVN commit r19145.
2017-01-16 08:38:31 +00:00
leper
3a85d0b3fa
Remove unused parameter from template loading code
...
Templates should be the same for all players, techs can be used to
provide
different lists of templates if that is needed.
Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D25
This was SVN commit r19142.
2017-01-15 18:41:53 +00:00
fatherbushido
103a59ec1e
Fix a space tab inconsistency detected by python3.
...
This was SVN commit r19139.
2017-01-13 08:40:54 +00:00
leper
b5991e188b
TemplateLoader cleanup.
...
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D26
This was SVN commit r19119.
2017-01-07 17:52:32 +00:00
wraitii
2bae30c454
Fix [19027] by using generic code for conversions and fixing a few other issues. Refs #3403 . Reviewed by leper.
...
Also fix some of the warnings that jenkins showed.
Differential Revision: https://code.wildfiregames.com/D24
This was SVN commit r19115.
2017-01-06 11:14:03 +00:00
elexis
3c8fc4f263
Return "local" from GetPlayerGUID to avoid duplicate checks and allow AIs to send private messages to the single player. Refs #4431 .
...
Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D38
This was SVN commit r19112.
2017-01-05 10:22:39 +00:00
Itms
4068f2e14a
Fix warning with GCC in our lowlevel PNG texture code.
...
Ensure a variable is not clobbered by libpng's use of longjmp. Make code
more consistent.
Differential Revision: https://code.wildfiregames.com/D35
This was SVN commit r19111.
2017-01-04 21:05:08 +00:00
Itms
81eb74163e
Happy New Year *cough*(Years)*cough*!
...
Also fix some whitespace.
This was SVN commit r19110.
2017-01-04 21:00:16 +00:00
leper
11ce52f8c5
Fix a few mistakes in the lobby readme.
...
Differential Revision: https://code.wildfiregames.com/D27
This was SVN commit r19087.
2016-12-31 00:11:30 +00:00
fatherbushido
fd8df9143b
Remove some semicolons at end of line in a python script.
...
This was SVN commit r19073.
2016-12-27 09:42:02 +00:00
fatherbushido
55e9fee616
Add ptol civ and hero class to template analyzer tool.
...
This was SVN commit r19067.
2016-12-26 20:31:01 +00:00
Itms
490a3a27f6
Fix the cache directory appearing during tests.
...
Summary: Refs #4419 .
Test Plan: When running tests, make sure nothing is created.
Reviewers: leper
Reviewed By: leper
Subscribers: leper, Vulcan
Differential Revision: https://code.wildfiregames.com/D1
This was SVN commit r19062.
2016-12-25 22:03:30 +00:00
wraitii
40fd373c83
Revert [19043]
...
This was SVN commit r19054.
2016-12-21 12:36:41 +00:00
Itms
a4c68b664b
Add the executable flag to the translation maintenance script
...
This was SVN commit r19047.
2016-12-18 17:36:40 +00:00
wraitii
8e8da9aee4
Fix a bug introduced by a fix of a bug introduced by a fix of a bug (x100) in the vertex pathfinder. Revealed by automated tests on another branch of mine. Revert back to pre-new pathfinder behavior of not returning paths in some cases, since that is most likely less broken than now - but probably still a little broken.
...
This was SVN commit r19043.
2016-12-18 10:02:36 +00:00
wraitii
9288837472
Fix misleading indentation warning on gcc, introduced by [19024]. Reported by elexis. Fixes #3785
...
This was SVN commit r19041.
2016-12-13 13:34:31 +00:00
Imarok
e7eeb6927d
Remove deprecated water parameters. Patch by paulobezerr. Partial review by FeXoR. Fixes #4292 .
...
This was SVN commit r19040.
2016-12-12 23:46:46 +00:00
wraitii
507ecff2ed
Scroll to the top when switching between tabs in the credits. Patch by vladislavbelov
...
This was SVN commit r19036.
2016-12-11 21:15:50 +00:00
wraitii
06333708f8
Fix animation syncronisation between actor props. Fixes #2324 one more time. Refs [18568] and [18265]. Reported by
...
wowgetoffyourcellphone
This was SVN commit r19031.
2016-12-08 23:16:54 +00:00
wraitii
78bc56f33e
Display the updated batch size immediately when using the batch-train/barter hotkey, instead of waiting for the next turn. Patch by elexis. Fixes #3194
...
This was SVN commit r19028.
2016-12-07 19:18:57 +00:00
wraitii
977a5c7ca2
Add C++ GUI code for drawing charts. Patch by vladislavbelov. JS will come later. Refs #3403
...
This was SVN commit r19027.
2016-12-07 19:03:54 +00:00
wraitii
e7e5631135
Better fix to #3785 . Fixes #3785
...
This was SVN commit r19024.
2016-12-06 23:25:26 +00:00
mimo
fe77783145
Change color of disabled labels and dropdowns, patch by vladislavbelov, fixes #4350
...
This was SVN commit r19020.
2016-12-05 17:21:51 +00:00
Itms
6ae374dbee
Fix the update of shared dirty visibility masks when changing diplomacy.
...
The previous code worked in case new mutual allies were added, but, when
some were removed, it was suboptimal in terms of performance and it made
some units visible in the FoW.
Fixes #4266
This was SVN commit r18994.
2016-11-24 14:57:09 +00:00
Itms
a27dc31b0e
Remove some obsolete backref logic from the deserializer. It was introduced in earlier versions of the SpiderMonkey API.
...
Name some variables more logically in one test.
Fixes #4244
This was SVN commit r18993.
2016-11-24 14:47:49 +00:00
elexis
808dd347b6
Play cinematic paths on arbitrary cameras to prepare previews of the camera frustum in atlas. Patch by Vladislav, refs #3814 .
...
This was SVN commit r18992.
2016-11-23 14:50:47 +00:00
elexis
417c84870c
Actually remove trailing tabs from source/.
...
This was SVN commit r18991.
2016-11-23 14:09:58 +00:00
elexis
c49c665edb
Disable SDL text input events before actually focusing a text input element. Patch by echotangoecho, refs #3870 .
...
Thus don't add a "t" to the chat input after opening it with the hotkey
on unix.
The bug still occurs on Windows due to an SDL bug reported upstream by
echotangoecho.
This was SVN commit r18990.
2016-11-23 13:29:47 +00:00
elexis
6149dd3841
Actually remove trailing whitespace for non-header files as well.
...
This was SVN commit r18989.
2016-11-23 13:02:58 +00:00
elexis
944ba16eb4
End source files with a newline.
...
This was SVN commit r18988.
2016-11-23 11:27:54 +00:00
elexis
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
elexis
aa7e2fce49
Don't subtract the scrollbar size from GUI dropdowns when there is no scrollbar. Patch by Imarok, reviewed by mimo, refs #3571 .
...
Remove unused button_width.
This was SVN commit r18984.
2016-11-22 13:05:56 +00:00
elexis
7ff7fcd240
Support hardcoded translation comments when extracting strings from JSON files.
...
Correct the function description of extractFromFile introduced in
ae10d34d99 .
This was SVN commit r18963.
2016-11-19 14:16:50 +00:00
mimo
a3c3ca79cf
Save the config file even it does not exist, patch by Vladislav Belov, fixes #4146
...
This was SVN commit r18960.
2016-11-18 18:06:01 +00:00
elexis
aa26863d5c
Fix an OOS on rejoin caused by ParamNode.cpp using an invalid node cache. Patch by leper, fixes #4316 .
...
Reuse the temple of vesta inheritance from 06bf79b7e8 which was affected
by this bug.
This was SVN commit r18942.
2016-11-15 14:01:15 +00:00
elexis
3008533c8e
Add a template manager test that reveals an inheritance error in ParamNode.cpp which can trigger an OOS on rejoin. Patch by leper, refs #4316 .
...
This was SVN commit r18941.
2016-11-15 13:51:29 +00:00
elexis
2bf1dbfd13
An awesome Rejoin-test tool by wraitii and Itms, fixes #4242 , refs #3460 .
...
Contrary to the serializationtest, initializes the secondary simstate
only once
before progressively applying updates.
Thus reproducing actual multiplayer rejoining, enabling developers to
analyze OOS reports solely from the replay file of the rejoined and a
non-rejoined client.
This was SVN commit r18940.
2016-11-15 13:26:58 +00:00
elexis
f3ab043c91
Rename isReplay to isNonVisualReplay becuase it is false for visual replays.
...
This was SVN commit r18937.
2016-11-14 17:19:53 +00:00
elexis
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
elexis
3f5648767d
Scroll to the selected element after the selection changes. Fixes #4254 , refs #3742 .
...
This was SVN commit r18935.
2016-11-14 15:28:49 +00:00
elexis
34ce0f865d
Reset the cursor when opening new GUI pages. Patch by danger89, refs #539 .
...
Remove duplicate cursor image and duplicate hardcoded default paths.
This was SVN commit r18933.
2016-11-14 13:23:07 +00:00
elexis
2ec3f3ebaa
Add parenthesis suggested by gcc 5.4 following 3e59ac76ee, refs #4278 .
...
This was SVN commit r18924.
2016-11-12 16:07:23 +00:00
mimo
3e59ac76ee
fix UnitMotion when inside the obstruction, refs #4278
...
This was SVN commit r18921.
2016-11-11 13:14:30 +00:00
elexis
e55ee5048e
Bump version number to Alpha 22.
...
Remove "new" keyword from Alpha 21 maps.
Remove "new pathfinder" hint from Alpha 19, as reported by fcxSanya.
Show chat timestmaps by default.
This was SVN commit r18919.
2016-11-11 01:46:12 +00:00