You might have to add an extra variable to make sure a box is not redrawn for the same unit or not drawn while a movement command is active for a unit. This could cause other problems but I am also unable to see why two boxes are drawn for one unit unless there is an unknown behavior problem with the Box Object code.
But why would it try to draw the same object twice.
It always occurs during movement of the camera or unit so it has to be assumed that the box code is drawing the box at two differnet locations because of the movement of the screen.
I don't really know what to do; I am just a newb.
------------- EDIT ---------------------------------
Quote: "box object screen x(unit),object screen y(unit),object screen x(unit)+BarLength,object screen y(unit)+2"
I look up the box command and it shows
"BOX Left, Top, Right, Bottom" as the format
And for Object Screen X
"Return Value=OBJECT SCREEN X(Object Number)"
Should
Quote: "box object screen x(unit)"
be written as
Quote: "box (object screen x(unit))"
or does this format not matter?
I am new and that is how it would be done in some of my VB programs.
Wasting CPU Cycles since the 286 was a hot machine.