AttacqueSuperior / Engine

A customized fork for the modification Attacque Supérior of the open-source implementation of the Command & Conquer: Red Alert engine using .NET/Mono and OpenGL. Runs on Windows, Linux and Mac OS X.
http://attsup.swr-productions.com
GNU General Public License v3.0
16 stars 3 forks source link

Smart deploy patch #90

Closed shiftybit closed 5 years ago

shiftybit commented 5 years ago

This chief purpose of this patch is to fix the desync glitch caused when shift queuing a smart deploy order. We are also no longer adding a target string to the gcod.

All of the logic is handled within CanIssueDeployOrder method. This means that when a deploy order is sent to a group of units in a mixed deploy state, deploy orders will be issued only for the ones that need it. This logic is handled client side, should introduce less lag than the previous version, which introduced a targetString that grew on a factorial scale. I.E, if you have 100 units, you have 100 units each with a target string of 100 elements, or 1000 units, each with a target String of 1000 units. The amount of data sent across would be inordinately high when dealing with large groups of actors.