MCPcopy Create free account
hub / github.com/NBlood/NBlood / ScreenLoadSaveSetup

Function ScreenLoadSaveSetup

source/sw/src/draw.cpp:2684–2702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2682}
2683
2684int
2685ScreenLoadSaveSetup(PLAYERp pp)
2686{
2687 int tx, ty, tz,thoriz,pp_siz;
2688 short tang,tsectnum;
2689 short i;
2690
2691 // lock and allocate memory
2692
2693 ScreenTileLock();
2694
2695 if (!waloff[SAVE_SCREEN_TILE])
2696 allocache((intptr_t*)&waloff[SAVE_SCREEN_TILE], SAVE_SCREEN_XSIZE * SAVE_SCREEN_YSIZE, &walock[SAVE_SCREEN_TILE]);
2697
2698 tilesiz[SAVE_SCREEN_TILE].x = SAVE_SCREEN_XSIZE;
2699 tilesiz[SAVE_SCREEN_TILE].x = SAVE_SCREEN_YSIZE;
2700
2701 return SAVE_SCREEN_TILE;
2702}
2703
2704int
2705ScreenSaveSetup(PLAYERp pp)

Callers 3

ScreenSaveSetupFunction · 0.85
LoadGameFullHeaderFunction · 0.85
LoadGameFunction · 0.85

Calls 1

ScreenTileLockFunction · 0.85

Tested by

no test coverage detected