[JASS] globals and size definition

Status
Not open for further replies.
Level 11
Joined
Apr 6, 2008
Messages
760
Anyone know a fix for this? Count cant be used to define the array size and if i wrap it in R2I() it will become an integer but wont be able to use it 'Wrong [Size] definition'

JASS:
globals
    private constant real Ang = (bj_PI*2/360)*Angle
    private constant integer Count = 360/(Ang*57.29577951308232)
endglobals

struct
unit array units[Count]
endstruct

EDIT:

Solved it

JASS:
360/R2I((Ang*57.29577951308232))
 
Status
Not open for further replies.
Back
Top