mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Added initial version
This commit is contained in:
commit
b452bd670c
13290 changed files with 1178433 additions and 0 deletions
18
dumps/scripts/2866.cs2
Normal file
18
dumps/scripts/2866.cs2
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
int script_2866(int arg0,int arg1) {
|
||||
int ivar2;
|
||||
int ivar3;
|
||||
ivar2 = 0;
|
||||
ivar3 = 0;
|
||||
ivar2 = subtract(extractX(arg0), extractX(arg1));
|
||||
if (ivar2 < 0) {
|
||||
ivar2 = multiply(ivar2, -1);
|
||||
}
|
||||
ivar3 = subtract(extractY(arg0), extractY(arg1));
|
||||
if (ivar3 < 0) {
|
||||
ivar3 = multiply(ivar3, -1);
|
||||
}
|
||||
if (ivar2 > ivar3) {
|
||||
return ivar2;
|
||||
}
|
||||
return ivar3;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue