mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-16 05:24:09 +00:00
added wrappers around math functions
This commit is contained in:
parent
80e0409d6a
commit
4a36d64f15
31 changed files with 204 additions and 191 deletions
|
@ -286,8 +286,8 @@ CCoronas::Render(void)
|
|||
|
||||
// if distance too big, break streak
|
||||
if(aCoronas[i].hasValue[1]){
|
||||
if(fabs(aCoronas[i].prevX[0] - aCoronas[i].prevX[1]) > 50.0f ||
|
||||
fabs(aCoronas[i].prevY[0] - aCoronas[i].prevY[1]) > 50.0f)
|
||||
if(Abs(aCoronas[i].prevX[0] - aCoronas[i].prevX[1]) > 50.0f ||
|
||||
Abs(aCoronas[i].prevY[0] - aCoronas[i].prevY[1]) > 50.0f)
|
||||
aCoronas[i].hasValue[0] = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue