loot
This commit is contained in:
parent
0ead044da1
commit
51cc3f3ca6
20 changed files with 278 additions and 33 deletions
|
@ -1,6 +1,11 @@
|
|||
function c_gettile(x, y, absolute=false) {
|
||||
var thex = round((x-16)/ts.x);
|
||||
var they = round((y-16)/ts.y);
|
||||
if absolute {
|
||||
var thex = round((x-16)/ts.x);
|
||||
var they = round((y-16)/ts.y);
|
||||
} else {
|
||||
var thex = x;
|
||||
var they = y;
|
||||
}
|
||||
if c_tileexists(thex, they) return mp[thex][they];
|
||||
return noone;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue