Commit Graph

4727 Commits

Author SHA1 Message Date
Matthias Mailänder
d2adc28a00 Merge pull request #5865 from obrakmann/fix5861
Fix RepairBuilding not working for AI and Lua scripts
2014-07-07 20:54:03 +02:00
Oliver Brakmann
33b916a713 Fix RepairBuilding not working for AI and Lua scripts
Fixes #5861
2014-07-07 19:43:52 +02:00
RoosterDragon
a512d9ad0a Sped up shroud rendering.
- Only update shroud within the visible screen area, rather than the whole map. This improves performance on larger maps significantly when scrolling around since large portions of the shroud do not need to be updated.
- Provide methods in Shroud to return delegates to check for explored/visibility for tiles within a certain region. This allows it to return more efficient delegates whenever the region is within the map bounds, or shroud/fog is disabled. In the typical case where the region is in bounds and shroud/fog is enabled, the fast check is almost twice as fast as the slow check.
- Use the Shroud delegate functions in shroud rendering, frozen actors, minimap rendering and resource layer areas to provide a speedup since these areas of code can often take advantage of the fact they perform checks within the map boundary.
- Cache current element in CellRegionEnumerator to prevent repeated work if the element is accessed more than once.
- Decrease the size of elements in some arrays in hopes of reducing memory needs and improving cache hits.
2014-07-07 17:34:31 +01:00
RoosterDragon
2351c43237 Refactoring pass.
- Extract an enum for edges rather than using magic numbers for everything.
- Remove duplicated code between FoggedEdges and ShroudedEdges by hosting the visibility function into a delegate.
- Make minimap methods more readable.
- Tidy formatting.
- Make some fields readonly.
- Remove unused usings.
2014-07-07 17:34:25 +01:00
Matthias Mailänder
91a076728d generalize into SpawnActorPower
closes #5724
2014-07-07 15:27:54 +02:00
Matthias Mailänder
f60fefd5f5 add a ripple animation based on the move flash 2014-07-07 15:26:07 +02:00
Matthias Mailänder
43bca0e73d add the sonar pulse
closes #4729
2014-07-07 15:26:07 +02:00
Matthias Mailänder
4fb38c955b Merge pull request #5859 from pchote/paratrooper-cleanup
Improve paratroopers.
2014-07-07 15:19:41 +02:00
Paul Chote
e4f8816486 Fix the crate drop. 2014-07-08 00:30:55 +12:00
Paul Chote
ab26d4b0ad Overhaul ParatroopersPower:
- Adds support for multiple drop planes.
- Adds support a beacon and camera.
- Prevents the plane from circling if it can’t unload.
2014-07-08 00:30:38 +12:00
Matthias Mailänder
b8756d9de7 Merge pull request #5860 from pchote/news-fix
News fixes
2014-07-07 13:25:25 +02:00
Paul Chote
ad375c5734 Reorganize news parsing. Fixes #5647. 2014-07-07 22:23:04 +12:00
Paul Chote
c352ff644f Use a shared url for news updates. Fixes #5603. 2014-07-07 21:48:07 +12:00
Matthias Mailänder
fa83507a62 Merge pull request #5854 from pchote/ra-poster
Add beacons to the RA spy plane and parabombs
2014-07-07 10:15:03 +02:00
Paul Chote
59bea931a5 Use AirstrikePower for spy planes. 2014-07-07 17:40:51 +12:00
Paul Chote
a4ba7f7158 Remove the obsolete flare definition from AirstrikePower. 2014-07-07 17:40:51 +12:00
Matthias Mailänder
dc63171e0e pause active animations 2014-07-06 23:11:56 +02:00
Matthias Mailänder
82a8fd329e don't play active animation when we sell it 2014-07-06 14:58:29 +02:00
Matthias Mailänder
69209cd340 split WithActiveAnimation from SeedsResource
closes #5300
2014-07-06 14:58:29 +02:00
Matthias Mailänder
59dcd297f5 Merge pull request #5828 from reaperrr/missile-shadow
Re-implement Shadow support for Missiles
2014-07-06 14:55:51 +02:00
reaperrr
cb216aa345 Reimplement Shadow toggle for Missile projectile.
Enable Shadow by default.
2014-07-06 14:46:04 +02:00
Matthias Mailänder
fe41ac7fa3 @pchote breaks all the things 2014-07-06 14:45:05 +02:00
Matthias Mailänder
443b46ca64 fix Tiberian Sun installation from CD 2014-07-06 14:04:26 +02:00
Paul Chote
3f7293b206 Let FieldLoader do the hard work of loading fields. 2014-07-06 14:04:26 +02:00
Matthias Mailänder
038146abb3 prevent flickering 2014-07-06 14:04:26 +02:00
Matthias Mailänder
585264d3ad remove non-existing "INIT_SETUP" chrome widget reference 2014-07-06 14:04:26 +02:00
Matthias Mailänder
2f55768c1b restart the game instead of unmounting on the fly
avoid more redundancy between the load screens
2014-07-06 14:04:26 +02:00
Matthias Mailänder
7b5e072994 unmount all to avoid write permission problems
fight the new caching mechanism and M$ WindowsTM file systems
2014-07-06 14:04:25 +02:00
Matthias Mailänder
dbb4132b66 add TrimOrEmpty to avoid NREs 2014-07-06 14:04:25 +02:00
Matthias Mailänder
cc64b41246 fix Tiberian Dawn CD rip logic
closes #4424
2014-07-06 14:04:25 +02:00
Matthias Mailänder
57a631c284 rebase bit rot crap 2014-07-06 14:04:25 +02:00
Matthias Mailänder
7783e988a7 unify music install and add a download option
closes #4759
2014-07-06 14:04:25 +02:00
Matthias Mailänder
14f71c55bf unify install from CD logic 2014-07-06 14:04:25 +02:00
Matthias Mailänder
351c759793 separate content install from loadscreen 2014-07-06 14:04:25 +02:00
Paul Chote
08b1c989d6 Merge pull request #5640 from Mailaender/editor-tick
Separated Tick and TickRender more cleanly
2014-07-07 00:03:04 +12:00
Matthias Mailänder
7e496f8db9 StyleCop and avoid redundancy 2014-07-06 12:48:47 +02:00
Oliver Brakmann
cb8ed251b2 Fix non-infantry support units starting on subcells.
Fixes #5378
2014-07-06 12:04:15 +02:00
Matthias Mailänder
cde7ec1948 disallow building placement when the game is paused
touches the most glitchy case of #3277
2014-07-06 09:39:16 +02:00
Matthias Mailänder
565ea05bd7 fix problem with cnc nuke leaking the long idle sequence Tick
and avoid magic numbers
2014-07-06 09:23:31 +02:00
Matthias Mailänder
960248fe44 freeze animations during pause to visualize it better 2014-07-06 08:24:08 +02:00
Matthias Mailänder
d1e18cad7a new PauseState to differentiate game and editor pausing 2014-07-06 08:24:08 +02:00
Matthias Mailänder
d580ca6417 ActorMap is updated in Tick
so we can't search for adjacent actors in TickRender
2014-07-06 08:24:08 +02:00
Matthias Mailänder
394d635dae new trait WithMakeAnimation 2014-07-06 08:24:08 +02:00
Matthias Mailänder
87fd576b26 use TickRender() for RenderSprites and PaletteModifier 2014-07-06 08:24:08 +02:00
Matthias Mailänder
58cb603803 Merge pull request #5834 from Squiggles211/heli-turn
Increase Chinook landing speed and removed turn before landing.
2014-07-06 08:19:44 +02:00
Matthias Mailänder
9be8f4ce29 Merge pull request #5832 from obrakmann/fix-old-lua-breakage
Fix breakage of the old Lua API due to recent changes
2014-07-06 07:55:34 +02:00
Squiggles211
ebc6515d73 Fixes #5054 by removing chinook's turn before landing and increasing ascend/descend speed
Allows for any helicopter to enable or disable the turn before landing
but sets it to default off for the chinook.  (may be desireable for
single player missions visual effect like Allies01?)  Also gives the
chinook a faster ascend/descend speed.  Fixes #5054
2014-07-06 00:52:43 -05:00
Oliver Brakmann
3a67b3dec3 Fix breakage of the old Lua API due to recent changes
Specifically, the CPos::CenterPosition -> Map::CenterOfCell rename (#5758),
as well as the additional argument to Paradrop::SetLZ (#5695).
2014-07-06 01:21:22 +02:00
Chris Forbes
ee2dc60eb3 Merge pull request #5822 from Mailaender/voxel-walker-move
Moved specialized voxel render traits to Mods.TS library.
2014-07-06 10:52:35 +12:00
Paul Chote
cc14f5ef17 Don’t try to render the repair indicator if there are no repairers. Fixes #5823 2014-07-06 10:05:56 +12:00