… | |
… | |
2458 | is_legal_2ways_exit (object *op, object *exit) |
2458 | is_legal_2ways_exit (object *op, object *exit) |
2459 | { |
2459 | { |
2460 | object *tmp; |
2460 | object *tmp; |
2461 | object *exit_owner; |
2461 | object *exit_owner; |
2462 | player *pp; |
2462 | player *pp; |
2463 | mapstruct *exitmap; |
2463 | maptile *exitmap; |
2464 | |
2464 | |
2465 | if (exit->stats.exp != 1) |
2465 | if (exit->stats.exp != 1) |
2466 | return 1; /*This is not a 2 way, so it is legal */ |
2466 | return 1; /*This is not a 2 way, so it is legal */ |
2467 | if (!has_been_loaded (EXIT_PATH (exit)) && exit->race) |
2467 | if (!has_been_loaded (EXIT_PATH (exit)) && exit->race) |
2468 | return 0; /* This is a reset town portal */ |
2468 | return 0; /* This is a reset town portal */ |
… | |
… | |
3714 | * when an original map is loaded) and performs special actions for |
3714 | * when an original map is loaded) and performs special actions for |
3715 | * certain objects (most initialization of chests and creation of |
3715 | * certain objects (most initialization of chests and creation of |
3716 | * treasures and stuff). Calls auto_apply if appropriate. |
3716 | * treasures and stuff). Calls auto_apply if appropriate. |
3717 | */ |
3717 | */ |
3718 | void |
3718 | void |
3719 | fix_auto_apply (mapstruct *m) |
3719 | fix_auto_apply (maptile *m) |
3720 | { |
3720 | { |
3721 | object *tmp, *above = NULL; |
3721 | object *tmp, *above = NULL; |
3722 | int x, y; |
3722 | int x, y; |
3723 | |
3723 | |
3724 | if (m == NULL) |
3724 | if (m == NULL) |