* Set the state for the given structure. * * @param s The structure to set the state of. * @param state The new sate value. */
| 664 | * @param state The new sate value. |
| 665 | */ |
| 666 | void Structure_SetState(Structure *s, int16 state) |
| 667 | { |
| 668 | if (s == NULL) return; |
| 669 | s->state = state; |
| 670 | |
| 671 | Structure_UpdateMap(s); |
| 672 | } |
| 673 | |
| 674 | /** |
| 675 | * Get the structure on the given packed tile. |
no test coverage detected