.skip - Page 2

.skip

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

bwansy
Posts: 385
Joined: 02 May 2006, 05:21

Post by bwansy »

What about this:

Code: Select all

if (DestinationTime > CurrentTime)
   {
      rush through the calculations;
   }
   else
   {
      restart replay;
      rush through the calculations;
   }
Then there's no need for snapshots. If restarting the replay without retsarting the game is impossible, then simply reset the resource bar and all other stats and orders, place comms at their starting positions respectively and delete all other units.
Rushing through the calculations from the very beginning may take a long time, but definitely shorter than actually playing the whole thing again.
Post Reply

Return to “Engine”