| 66 | } // namespace |
| 67 | |
| 68 | void nthread_terminate_game(const char *pszFcn) |
| 69 | { |
| 70 | uint32_t sErr = SErrGetLastError(); |
| 71 | if (sErr == STORM_ERROR_INVALID_PLAYER) { |
| 72 | return; |
| 73 | } |
| 74 | if (sErr != STORM_ERROR_GAME_TERMINATED && sErr != STORM_ERROR_NOT_IN_GAME) { |
| 75 | app_fatal(StrCat(pszFcn, ":\n", pszFcn)); |
| 76 | } |
| 77 | |
| 78 | gbGameDestroyed = true; |
| 79 | } |
| 80 | |
| 81 | uint32_t nthread_send_and_recv_turn(uint32_t curTurn, int turnDelta) |
| 82 | { |
no test coverage detected