• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] Protect a map will cause unit creating point leaks?

Status
Not open for further replies.
Level 1
Joined
Mar 27, 2016
Messages
5
Hello,guys, dun see this is my first post, i am not a newbie to WE. Yesterday, i protect my map, and i have nothing do, just doing some fun with deprotect my map again, and no unit appear on the main map(i consider it have been triggered by Create - Unit) and i see it is written in JASS, but i sèe a thousands of leaks, that is Create - Unit part, and it no to store the point and no remove location............................ LEAKS DETECTED!!!
Question: Did i protected the map will automatically have this trigger and cause leaks or after i deprotect the map?
 

EdgeOfChaos

E

EdgeOfChaos

When optimized, the optimizer converts all pre-placed units into the code, as you found. Instead of them being preplaced, they are created on map initiation with the CreateUnit action. However, it does not use locations to create these units but rather simple x/y coordinates, so no locations are created = no leaks.
 
Status
Not open for further replies.
Top