… | |
… | |
1237 | |
1237 | |
1238 | /* If two top faces are already set, quit processing */ |
1238 | /* If two top faces are already set, quit processing */ |
1239 | if ((top != blank_face) && (middle != blank_face)) |
1239 | if ((top != blank_face) && (middle != blank_face)) |
1240 | break; |
1240 | break; |
1241 | |
1241 | |
1242 | /* Only show visible faces, unless its the editor - show all */ |
1242 | /* Only show visible faces */ |
1243 | if (!tmp->invisible || editor) |
1243 | if (!tmp->invisible) |
1244 | { |
1244 | { |
1245 | /* Fill in top if needed */ |
1245 | /* Fill in top if needed */ |
1246 | if (top == blank_face) |
1246 | if (top == blank_face) |
1247 | { |
1247 | { |
1248 | top = tmp->face; |
1248 | top = tmp->face; |
… | |
… | |
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) |