• 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.

call removelocation with playernumber?

Status
Not open for further replies.
Level 7
Joined
Sep 9, 2007
Messages
253
for player 1 (red) the JASS PlayerID would be 0. if you have set the array values to player numbers in GUI then I think you might need to 1 to the integer returned from Almia's above function. I'm not sure though because it depends how you are assigning the point array.
 
Level 7
Joined
Sep 9, 2007
Messages
253
It seems to me that either would work.
either
+1 increment in code to match up with GUI
ot
-1 in GUI to match up with code.

as long as it's consistent. If GUI is what you generally use and it is what you know best then I would do the former to avoid confusing yourself in early hours of the morning.
 
Level 26
Joined
Aug 18, 2009
Messages
4,099
That above will leak,coz 2 location variables will share the same coordinates,creating two locations

False. Locations are objects, which is why you would destroy them in the first place. The variables are only pointers to those objects. If you set locationVarA = locationVarB, both variables will reference the same object. Player's start location is a function creating a new location.
 
Status
Not open for further replies.
Top