| 1788 | } |
| 1789 | } |
| 1790 | static void UI_HandleLoadSelection() |
| 1791 | { |
| 1792 | Cvar_Set("ui_SelectionOK", va("%d",(s_savegame.currentLine < s_savegame.saveFileCnt)) ); |
| 1793 | if (s_savegame.currentLine >= s_savegame.saveFileCnt) |
| 1794 | return; |
| 1795 | #ifdef JK2_MODE |
| 1796 | Cvar_Set("ui_gameDesc", s_savedata[s_savegame.currentLine].currentSaveFileComments ); // set comment |
| 1797 | |
| 1798 | if (!ui.SG_GetSaveImage(s_savedata[s_savegame.currentLine].currentSaveFileName, &screenShotBuf)) |
| 1799 | { |
| 1800 | memset( screenShotBuf,0,(SG_SCR_WIDTH * SG_SCR_HEIGHT * 4)); |
| 1801 | } |
| 1802 | #endif |
| 1803 | } |
| 1804 | |
| 1805 | /* |
| 1806 | ================= |
no test coverage detected