Code center > Solved Bugs
Aim getting WAAAAAY too big
Ulciscor:
Yes! I agree!
PurpleYouko:
WOOHOOO :clap: :party:
You got it.
The way it was written, it didn't matter how big .aimsx got. The function always returned 0 as the condition. I.e. it NEVER fulfilled the condition and limited .aimsx to 1256.
Numsgil:
Weren't we saying that way back at the beginning though? I thought there was something else I wasn't seeing.
PurpleYouko:
So here is the crash fix for those of out there who give a crap.
--- Code: ---If Abs(.mem(aimsx) > 1256) Then .mem(aimsx) = 1256 * Sgn(.mem(aimsx)) 'new crash fix?
If Abs(.mem(aimdx) > 1256) Then .mem(aimdx) = 1256 * Sgn(.mem(aimdx))
--- End code ---
becomes
--- Code: ---If Abs(.mem(aimsx)) > 1256 Then .mem(aimsx) = 1256 * Sgn(.mem(aimsx)) 'new crash fix?
If Abs(.mem(aimdx)) > 1256 Then .mem(aimdx) = 1256 * Sgn(.mem(aimdx))
--- End code ---
Ulciscor:
--- Quote ---I'm guessing you need
--- Code: ---(Abs(.mem(aimsx)) > 1256)
--- End code ---
instead?
--- End quote ---
is different from
--- Code: ---If Abs(.mem(aimsx)) > 1256 Then
--- End code ---
How?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version