mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Merge branch 'master' of https://github.com/rheit/zdoom
# Conflicts: # wadsrc/static/language.eng
This commit is contained in:
commit
57667c2e0b
5 changed files with 15 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
// the dec offsetof macro doesnt work very well...
|
// the dec offsetof macro doesnt work very well...
|
||||||
#define myoffsetof(type,identifier) ((size_t)&((type *)1)->identifier - 1)
|
#define myoffsetof(type,identifier) ((size_t)&((type *)alignof(type))->identifier - alignof(type))
|
||||||
|
|
||||||
int Q_filelength (FILE *f);
|
int Q_filelength (FILE *f);
|
||||||
bool FileExists (const char *filename);
|
bool FileExists (const char *filename);
|
||||||
|
|
|
@ -1169,8 +1169,17 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_ClearOverlays)
|
||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
DPSprite *pspr = player->psprites;
|
DPSprite *pspr = player->psprites;
|
||||||
|
int startID = (pspr != nullptr) ? pspr->GetID() : start;
|
||||||
|
bool first = true;
|
||||||
while (pspr != nullptr)
|
while (pspr != nullptr)
|
||||||
{
|
{
|
||||||
|
if (pspr->GetID() == startID)
|
||||||
|
{
|
||||||
|
if (first)
|
||||||
|
first = false;
|
||||||
|
else
|
||||||
|
break;
|
||||||
|
}
|
||||||
int id = pspr->GetID();
|
int id = pspr->GetID();
|
||||||
|
|
||||||
//Do not wipe out layer 0. Ever.
|
//Do not wipe out layer 0. Ever.
|
||||||
|
|
|
@ -288,7 +288,7 @@ static void SetRotation(FLinePortal *port)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
port->mFlags &= PORTF_POLYOBJ;
|
port->mFlags &= ~PORTF_POLYOBJ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -108,5 +108,7 @@ CMPTMNU_SECTORSOUNDS = "Sector sounds use centre as source";
|
||||||
OPTVAL_MAPDEFINEDCOLORSONLY = "Map defined colours only";
|
OPTVAL_MAPDEFINEDCOLORSONLY = "Map defined colours only";
|
||||||
C_GRAY = "\ccgrey";
|
C_GRAY = "\ccgrey";
|
||||||
C_DARKGRAY = "\cudark grey";
|
C_DARKGRAY = "\cudark grey";
|
||||||
|
DSPLYMNU_MOVEBOB = "View bob amount while moving";
|
||||||
|
DSPLYMNU_STILLBOB = "View bob amount while not moving";
|
||||||
|
|
||||||
OPTVAL_ANYFIXEDCOLORMAP = "Any fixed colourmap";
|
OPTVAL_ANYFIXEDCOLORMAP = "Any fixed colourmap";
|
||||||
|
|
|
@ -700,6 +700,8 @@ OptionMenu "VideoOptions"
|
||||||
Option "$DSPLYMNU_NOMONSTERINTERPOLATION", "nomonsterinterpolation", "NoYes"
|
Option "$DSPLYMNU_NOMONSTERINTERPOLATION", "nomonsterinterpolation", "NoYes"
|
||||||
Slider "$DSPLYMNU_MENUDIM", "dimamount", 0, 1.0, 0.05, 2
|
Slider "$DSPLYMNU_MENUDIM", "dimamount", 0, 1.0, 0.05, 2
|
||||||
ColorPicker "$DSPLYMNU_DIMCOLOR", "dimcolor"
|
ColorPicker "$DSPLYMNU_DIMCOLOR", "dimcolor"
|
||||||
|
Slider "$DSPLYMNU_MOVEBOB", "movebob", 0, 1.0, 0.05, 2
|
||||||
|
Slider "$DSPLYMNU_STILLBOB", "stillbob", 0, 1.0, 0.05, 2
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue