hey all; i've got an issue where this statement will turn up true the second the integer hits a negative value:
...
int playposz = round(GetActorZ (0));
if (playposz <= -440)
...
the values are returning properly rounded, but anything below 0 will trigger the if statement. interestingly, if i combine this with other checks via && (ex: if (playposz <= -440 && playposx <= -1336 && playposy >= 4480)), this alone will set off the entire thing. what on earth is going on?
Question
msx2plus
hey all; i've got an issue where this statement will turn up true the second the integer hits a negative value:
the values are returning properly rounded, but anything below 0 will trigger the if statement. interestingly, if i combine this with other checks via && (ex: if (playposz <= -440 && playposx <= -1336 && playposy >= 4480)), this alone will set off the entire thing. what on earth is going on?
Edited by msx2plusShare this post
Link to post
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.