.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

The Falklands War: 1982- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPMBT
Notices


Reply
 
Thread Tools Display Modes
  #1  
Old November 20th, 2011, 06:56 PM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 6,007
Thanks: 497
Thanked 1,956 Times in 1,263 Posts
Mobhack is on a distinguished road
Default Re: Reassigning units

There is no idea of "numbers of units in my formation" in the formation data - unless you want to loop through all units and count it every time you need to know...

Determining who is the commander etc is a fun process of following pointers from formation data to leader data and unit data etc.

Most of that is from the original "squeeze a quart into a pint pot" design of the original code, which was struggling to fit 50 unit s a side into the memory of an old 286 class PC with 1MB RAM. (Remember that SP 2's PBEM replay needed the full massive 4MB extension that a 386 gave you way back, and playing with all that himem stuff etc. - not all computers would have >1MB installed).

Basically, it is undo-able with the code base as it stands. Same as with a few other annoyances.

Andy
Reply With Quote
  #2  
Old November 20th, 2011, 07:45 PM

scJazz scJazz is offline
Sergeant
 
Join Date: Jun 2005
Posts: 312
Thanks: 5
Thanked 8 Times in 7 Posts
scJazz is on a distinguished road
Default Re: Reassigning units

Quote:
Originally Posted by Mobhack View Post
There is no idea of "numbers of units in my formation" in the formation data - unless you want to loop through all units and count it every time you need to know...

*SNIP*

Andy
Exactly The only time you would need to know is if someone clicked the Reassign HQ button and selected a new Formation. So add the walk through the array right there.

Still... I'm getting the distinct impression you don't want to do that
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:17 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2026, Shrapnel Games, Inc. - All Rights Reserved.