| 707 | } |
| 708 | |
| 709 | static size_t dumpLocalDebugSyncLogByTime(uint32_t time) |
| 710 | { |
| 711 | unsigned logIndex; |
| 712 | for (logIndex = 0; logIndex < MAX_SYNC_HISTORY; ++logIndex) |
| 713 | { |
| 714 | if (syncDebugLog[logIndex].getGameTime() == time) |
| 715 | { |
| 716 | break; // found the log index for this time |
| 717 | } |
| 718 | } |
| 719 | |
| 720 | if (logIndex >= MAX_SYNC_HISTORY) |
| 721 | { |
| 722 | // did not find it |
| 723 | debug(LOG_WARNING, "Couldn't find gameTime: %" PRIu32 " in history", time); |
| 724 | return 0; |
| 725 | } |
| 726 | |
| 727 | return dumpLocalDebugSyncLog(logIndex); |
| 728 | } |
| 729 | |
| 730 | void recvDebugSync(NETQUEUE queue) |
| 731 | { |
no test coverage detected