HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Map Optimizer bug?

02-04-2006, 03:02 PM#1
vile
Hey vex
I thought your optimizer is optimizing the IsUnitType bug too?

I used all the functions including optimize BJ

Here is what I got after optimization:
function Dm takes nothing returns nothing
local unit DM=GetTriggerUnit()
if IsUnitType(DM,UNIT_TYPE_STRUCTURE)then

It doesnt turn it to == true

Bug?
02-04-2006, 03:12 PM#2
Blade.dk
IsUnitType only needs to be compared to true in boolexprs, it won't bug out in if statements.
02-04-2006, 04:00 PM#3
vile
Ah I see. Alright.

Either way it still bugs


function fF takes nothing returns boolean
return IsUnitType(GetFilterUnit(),ConvertUnitType(2))or GetUnitTypeId(GetFilterUnit())=='e008'
endfunction
02-04-2006, 08:55 PM#4
Vexorian
vile, this forum is not for the optimizer.

I already said it: I won't fix a bug what is blizzard's problem. I am tired of having to deal with such an stupid flaw in the wc3 engine. Either way for moments where it causes bugs use the "Safe IsUnitType" option and done.
02-04-2006, 11:22 PM#5
vile
k