How to set temporary values

Home / Uncategorized / How to set temporary values

I’m tired of having to go about things this way. I want to be able to set a value to something and have it quickly get/set back to the state it was at before.
static int FixJump=false;
if (NeedsToJump)
m_InputData[pD].m_Jump = 1;
FixJump = true;
else if (FixJump)
m_InputData[pD].m_Jump = 0;
FixJump = false;

I tried to do something like this:m_InputData[pD].m_Jump = (1 + 0) – m_InputData[pD].m_Jump;

But this method proved defective and didn’t work properly.


Read more

Leave a Reply

Your email address will not be published. Required fields are marked *