patchBos Wars - Patches: patch #7173, Refuse to define variables after...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #7173: Refuse to define variables after unit types

Submitter:  Kalle Olavi Niemitalo <kon>
Submitted:  Sat 24 Apr 2010 07:09:44 PM UTC
   
 
Open/Closed:  Closed Status:  Done
Assigned to:  feb

Tue 04 Jul 2023 08:06:35 PM UTC, comment #1: 

Bos Wars only uses predefined variables. DefineVariables() is not needed and has been removed. This also removes the risk of defining any variable after unit type definitions.

François Beerten <feb>
Group administrator
Sat 24 Apr 2010 07:09:44 PM UTC, original submission:  

Raise an error if a Lua script attempts to define variables when some unit types already exist.  Supporting such extra variables would require allocating memory for them in all the unit types and units, and that has not been implemented.

This is one of the error checks first proposed in the rejected patch #7116.  The other one (refusing to define unit types after units) does not make sense without the rest of the patch.

This patch is for branches/boswars-2.6 r9762.

Kalle Olavi Niemitalo <kon>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by feb (Posted a comment)
  • -email is unavailable- added by kon (Submitted the item)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-07-04 feb Open/ClosedOpen Closed
        StatusNone Done
    2010-04-24 kon Attached File- Added 0001-Refuse-to-define-variables-after-unit-types.patch, #20315

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code