Zwiebelchen
You can change this now in User CP.
- Reaction score
- 60
Errr ... I'm confused. For some odd reason, RegionAddRect() crashes my map after loading.
This is what I tried at first:
It crashed my map, so I tried doing this:
But this also crashes. If I comment out the RegionAddRect(...), then it works fine.
All rects I refer to exist and have the names A,B,C and D.
Any ideas what could be the problem?
Also, for some reason, this works:
[ljass]call RegionAddRect(Dungeons, null)[/ljass]
This is what I tried at first:
JASS:
library Init initializer bla
globals
region Dungeons = CreateRegion()
region City = CreateRegion()
endglobals
function bla takes nothing returns nothing
call RegionAddRect(Dungeons, gg_rct_A)
call RegionAddRect(Dungeons, gg_rct_B)
call RegionAddRect(City, gg_rct_C)
call RegionAddRect(City, gg_rct_D)
endfunction
endlibrary
It crashed my map, so I tried doing this:
JASS:
library Init initializer bla
globals
region Dungeons = CreateRegion()
region City = CreateRegion()
endglobals
function blacallback takes nothing returns nothing
call RegionAddRect(Dungeons, gg_rct_A)
call RegionAddRect(Dungeons, gg_rct_B)
call RegionAddRect(City, gg_rct_C)
call RegionAddRect(City, gg_rct_D)
call DestroyTimer(GetExpiredTimer())
endfunction
function bla takes nothing returns nothing
call TimerStart(CreateTimer(), 1, false, function blacallback)
endfunction
endlibrary
But this also crashes. If I comment out the RegionAddRect(...), then it works fine.
All rects I refer to exist and have the names A,B,C and D.
Any ideas what could be the problem?
Also, for some reason, this works:
[ljass]call RegionAddRect(Dungeons, null)[/ljass]