Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 8613 → Rev 8612

/source/duke3d/src/game.h
354,17 → 354,9
extern palette_t CrosshairColors;
extern palette_t DefaultCrosshairColors;
 
extern uint64_t g_frameDelay;
static inline uint64_t calcFrameDelay(int const maxFPS, int const offset)
{
uint64_t const perfFreq = timerGetPerformanceFrequency();
extern double g_frameDelay;
static inline double calcFrameDelay(unsigned int const maxFPS) { return maxFPS ? timerGetPerformanceFrequency() / (double)maxFPS : 0.0; }
 
if (maxFPS == -1)
return perfFreq / (refreshfreq - ceil(refreshfreq / 60.0));
 
return maxFPS ? perfFreq / (maxFPS + offset) : 0;
}
 
int32_t A_CheckInventorySprite(spritetype *s);
int32_t A_InsertSprite(int16_t whatsect, int32_t s_x, int32_t s_y, int32_t s_z, int16_t s_pn, int8_t s_s, uint8_t s_xr,
uint8_t s_yr, int16_t s_a, int16_t s_ve, int16_t s_zv, int16_t s_ow, int16_t s_ss);