You've already forked AM2R-Community-Updates
mirror of
https://github.com/izzy2lost/AM2R-Community-Updates.git
synced 2026-03-10 11:23:35 -07:00
16 lines
583 B
Plaintext
16 lines
583 B
Plaintext
/// draw_map_surf(x, y)
|
|
// leaks all variables, repositions calling instance..?
|
|
x = (argument0 - 3) * 8;
|
|
y = (argument1 - 3) * 8;
|
|
mystr = string(global.map[argument0, argument1]);
|
|
if (mystr != "0") {
|
|
wallU = string_char_at(mystr, 1);
|
|
wallR = string_char_at(mystr, 2);
|
|
wallD = string_char_at(mystr, 3);
|
|
wallL = string_char_at(mystr, 4);
|
|
color = string_char_at(mystr, 5);
|
|
special = string_char_at(mystr, 6);
|
|
corner = string_char_at(mystr, 7);
|
|
draw_mapblock(x, y, wallU, wallR, wallD, wallL, color, special, global.dmap[argument0, argument1], corner);
|
|
}
|