bmddota / barebones

:meat_on_bone: A starter Dota 2 custom game with useful hooks, settings, and libraries.
Apache License 2.0
235 stars 128 forks source link

If worldpanel is tracking an entity thats spawned in fog of war, panel gets instantly deleted #14

Closed gotwig closed 8 years ago

gotwig commented 8 years ago

I have this issue in my mod and I experience it as well with the healthbar example for world panels.

The healthpanel is indeed created, however not visible and also setting opacity to 1 doesnt make it visible.

Only worldpanels that are affected are ones that are tracking position of entities, if you use "position" instead of "entity" it works as intended.

To reproduce: create an enemy in a black area, than go to the enemy and notice is has no healthbar applied.

gotwig commented 8 years ago

Possible fix: Remove the if statement + content from barebones_worldpanels.js until line 84.

In a quick test it worked, but is this safe?

gotwig commented 8 years ago

Without fix? kind of strange.