Merge branch 'Saturn-Next' into Saturn-Testing
This commit is contained in:
commit
812e269195
4 files changed
+25
-10
No files matched your search
+2
-2
@@ -487,11 +487,11 @@ static boolean D_Display(void)
|
||||
{
|
||||
PS_START_TIMING(ps_rendercalltime);
|
||||
|
||||
R_ApplyLevelInterpolators(R_UsingFrameInterpolation() ? rendertimefrac : FRACUNIT);
|
||||
R_ApplyLevelInterpolators(rendertimefrac);
|
||||
|
||||
for (i = 0; i <= splitscreen; i++)
|
||||
{
|
||||
if (players[displayplayers[i]].mo || players[displayplayers[i]].playerstate == PST_DEAD)
|
||||
if (!P_MobjWasRemoved(players[displayplayers[i]].mo) || players[displayplayers[i]].playerstate == PST_DEAD)
|
||||
{
|
||||
viewssnum = i;
|
||||
|
||||
|
||||
@@ -410,6 +410,16 @@ static void HWR_GenerateTexture(INT32 texnum, GLMapTexture_t *gltex, boolean noe
|
||||
// patch may be NULL if glMipmap has been initialised already and makebitmap is false
|
||||
void HWR_MakePatch (patch_t *patch, GLPatch_t *glPatch, GLMipmap_t *glMipmap, boolean makebitmap)
|
||||
{
|
||||
if (glMipmap == NULL)
|
||||
return;
|
||||
|
||||
if (patch == NULL || glPatch == NULL)
|
||||
{
|
||||
Z_Free(glMipmap->data);
|
||||
glMipmap->data = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
// don't do it twice (like a cache)
|
||||
if (glMipmap->width == 0)
|
||||
{
|
||||
|
||||
+12
-7
@@ -1061,11 +1061,13 @@ void R_Init(void)
|
||||
|
||||
mobj_t *viewmobj;
|
||||
|
||||
static void
|
||||
R_SetupCommonFrame
|
||||
( player_t * player,
|
||||
subsector_t * subsector)
|
||||
static void R_SetupCommonFrame(player_t * player, subsector_t * subsector)
|
||||
{
|
||||
if (!player)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
newview->player = player;
|
||||
|
||||
newview->x += quake.x;
|
||||
@@ -1074,7 +1076,7 @@ R_SetupCommonFrame
|
||||
|
||||
newview->roll = R_ViewRollAngle(player);
|
||||
|
||||
if (subsector)
|
||||
if (subsector != NULL)
|
||||
newview->sector = subsector->sector;
|
||||
else
|
||||
newview->sector = R_PointInSubsector(newview->x, newview->y)->sector;
|
||||
@@ -1215,7 +1217,7 @@ void R_SetupFrame(int s, boolean skybox)
|
||||
{
|
||||
player_t *player = &players[displayplayers[s]];
|
||||
camera_t *thiscam = &camera[s];
|
||||
boolean chasecam = (cv_chasecam[s].value != 0);
|
||||
boolean chasecam = (cv_chasecam[s].value);
|
||||
subsector_t * subsector = NULL;
|
||||
|
||||
R_SetViewContext(VIEWCONTEXT_PLAYER1 + s);
|
||||
@@ -1269,7 +1271,10 @@ void R_SetupFrame(int s, boolean skybox)
|
||||
newview->y = thiscam->y;
|
||||
newview->z = thiscam->z + (thiscam->height>>1);
|
||||
|
||||
R_SetupCommonFrame(player, thiscam->subsector);
|
||||
if (thiscam != NULL)
|
||||
subsector = thiscam->subsector;
|
||||
|
||||
R_SetupCommonFrame(player, subsector);
|
||||
}
|
||||
else // use the player's eyes view
|
||||
{
|
||||
|
||||
+1
-1
@@ -2133,7 +2133,7 @@ void I_SleepDuration(precise_t duration)
|
||||
#if defined(__linux__) || defined(__FreeBSD__) || defined(__HAIKU__)
|
||||
UINT64 precision = I_GetPrecisePrecision();
|
||||
precise_t dest = I_GetPreciseTime() + duration;
|
||||
precise_t slack = (precision / 10000); // 0.1 ms slack
|
||||
precise_t slack = (precision / 5000); // 0.2 ms slack
|
||||
if (duration > slack)
|
||||
{
|
||||
duration -= slack;
|
||||
|
||||
Reference in new issue
Block a user