* Updates the path preview options. * @param action Pointer to an action. */
| 282 | * @param action Pointer to an action. |
| 283 | */ |
| 284 | void OptionsBattlescapeState::btnPathPreviewClick(Action *) |
| 285 | { |
| 286 | int mode = PATH_NONE; |
| 287 | if (_btnArrows->getPressed()) |
| 288 | { |
| 289 | mode |= PATH_ARROWS; |
| 290 | } |
| 291 | if (_btnTuCost->getPressed()) |
| 292 | { |
| 293 | mode |= PATH_TU_COST; |
| 294 | } |
| 295 | Options::battleNewPreviewPath = (PathPreview)mode; |
| 296 | } |
| 297 | |
| 298 | /** |
| 299 | * Updates the Tooltips option. |
nothing calls this directly
no test coverage detected