| 570 | } |
| 571 | |
| 572 | void pfile_update(BOOL force_save) |
| 573 | { |
| 574 | // BUGFIX: these tick values should be treated as unsigned to handle overflows correctly |
| 575 | static int save_prev_tc; |
| 576 | |
| 577 | if (gbMaxPlayers != 1) { |
| 578 | int tick = SDL_GetTicks(); |
| 579 | if (force_save || tick - save_prev_tc > 60000) { |
| 580 | save_prev_tc = tick; |
| 581 | pfile_write_hero(); |
| 582 | } |
| 583 | } |
| 584 | } |
| 585 | |
| 586 | DEVILUTION_END_NAMESPACE |
no test coverage detected