Nestharus
o-o
- Reaction score
- 84
hooray!! static ifs are dead : D
....
I guess I'm done writing until fixed... :\... all resources with static ifs in them are summarily destroyed.
so cJASS is broken as it's riddled with bugs, vjass is now broken as it too has too many bugs to even work with, and I don't even want to mess with Zinc because that has massive bug fixes every update ;o.
Hooray, back to vanilla JASS I go.
JASS:
library aafafdsfs
globals
private constant boolean REMOVE_UNITS_INI = true //remove all units owned by players not in map at ini
private constant boolean REMOVE_UNITS_LEAVE = true //remove all units owned by player
//when that player leaves, done after event fire
private constant boolean HUMAN = true //track human players
private constant boolean COMPUTER = true //track computer players
private constant boolean ACTIVE = true //track active players
private constant boolean INACTIVE = true //track inactive players
private constant boolean HUMAN_OUT_EVENT = true //fire events when a human leaves/removed
private constant boolean COMPUTER_OUT_EVENT = true //fire events when a computer is removed
private constant integer HIDDEN_PLAYER_ID = 14 //for use with GetHiddenPlayer, player 14
//is suggested as it has bounty etc enabled
endglobals
function test takes nothing returns nothing
static if REMOVE_UNITS_INI then
local integer s
a
else
DISPLAY ERROR //displays
endif
endfunction
endlibrary
JASS:
library aafafdsfs
globals
constant boolean REMOVE_UNITS_INI = true //remove all units owned by players not in map at ini
constant boolean REMOVE_UNITS_LEAVE = true //remove all units owned by player
//when that player leaves, done after event fire
constant boolean HUMAN = true //track human players
constant boolean COMPUTER = true //track computer players
constant boolean ACTIVE = true //track active players
constant boolean INACTIVE = true //track inactive players
constant boolean HUMAN_OUT_EVENT = true //fire events when a human leaves/removed
constant boolean COMPUTER_OUT_EVENT = true //fire events when a computer is removed
constant integer HIDDEN_PLAYER_ID = 14 //for use with GetHiddenPlayer, player 14
//is suggested as it has bounty etc enabled
endglobals
function test takes nothing returns nothing
static if REMOVE_UNITS_INI then
local integer s
a
else
DISPLAY ERROR //displays
endif
endfunction
endlibrary
....
I guess I'm done writing until fixed... :\... all resources with static ifs in them are summarily destroyed.
so cJASS is broken as it's riddled with bugs, vjass is now broken as it too has too many bugs to even work with, and I don't even want to mess with Zinc because that has massive bug fixes every update ;o.
Hooray, back to vanilla JASS I go.