… | |
… | |
1383 | |
1383 | |
1384 | /* This is basically the same as out_of_map above, but |
1384 | /* This is basically the same as out_of_map above, but |
1385 | * instead we return NULL if no map is valid (coordinates |
1385 | * instead we return NULL if no map is valid (coordinates |
1386 | * out of bounds and no tiled map), otherwise it returns |
1386 | * out of bounds and no tiled map), otherwise it returns |
1387 | * the map as that the coordinates are really on, and |
1387 | * the map as that the coordinates are really on, and |
1388 | * updates x and y to be the localized coordinates. |
1388 | * updates x and y to be the localised coordinates. |
1389 | * Using this is more efficient of calling out_of_map |
1389 | * Using this is more efficient of calling out_of_map |
1390 | * and then figuring out what the real map is |
1390 | * and then figuring out what the real map is |
1391 | */ |
1391 | */ |
1392 | maptile * |
1392 | maptile * |
1393 | get_map_from_coord (maptile *m, sint16 *x, sint16 *y) |
1393 | get_map_from_coord (maptile *m, sint16 *x, sint16 *y) |