Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] loadtarget problem
#5
(05-22-2015, 12:55 PM)YinYin Wrote:  Pretty simple:
remember the original target.

int target = target.num;

//do team move stuff

loadtarget(target);

//do other stuff
Probably should not call the variable target, as you would be overwriting the global variable target, which will cause things to go weird.
Other than that, then yes, this is the solution.
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by: YinYin , bashscrazy


Messages In This Thread
[solved] loadtarget problem - by bashscrazy - 05-22-2015, 12:01 AM
RE: loadtarget problem - by Som1Lse - 05-22-2015, 07:58 AM
RE: loadtarget problem - by bashscrazy - 05-22-2015, 12:47 PM
RE: loadtarget problem - by YinYin - 05-22-2015, 12:55 PM
RE: loadtarget problem - by Som1Lse - 05-22-2015, 01:03 PM



Users browsing this thread: 1 Guest(s)