… | |
… | |
1670 | |
1670 | |
1671 | // instead of crashing in the unlikely(?) case, try to return *something* |
1671 | // instead of crashing in the unlikely(?) case, try to return *something* |
1672 | return get_archetype ("blocked"); |
1672 | return get_archetype ("blocked"); |
1673 | } |
1673 | } |
1674 | |
1674 | |
1675 | /** |
|
|
1676 | * Maximum distance a player may hear a sound from. |
|
|
1677 | * This is only used for new client/server sound. If the sound source |
|
|
1678 | * on the map is farther away than this, we don't sent it to the client. |
|
|
1679 | */ |
|
|
1680 | #define MAX_SOUND_DISTANCE 10 |
|
|
1681 | |
|
|
1682 | void |
1675 | void |
1683 | maptile::play_sound (faceidx sound, int x, int y) const |
1676 | maptile::play_sound (faceidx sound, int x, int y) const |
1684 | { |
1677 | { |
1685 | if (!sound) |
1678 | if (!sound) |
1686 | return; |
1679 | return; |