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
This commit is contained in:
commit
7a2e957225
7 changed files with 13 additions and 14 deletions
|
@ -236,7 +236,7 @@ bool P_GetMidTexturePosition(const line_t *line, int sideno, double *ptextop, do
|
||||||
double textureheight = tex->GetHeight() / totalscale;
|
double textureheight = tex->GetHeight() / totalscale;
|
||||||
if (totalscale != 1. && !tex->bWorldPanning)
|
if (totalscale != 1. && !tex->bWorldPanning)
|
||||||
{
|
{
|
||||||
y_offset *= totalscale;
|
y_offset /= totalscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(line->flags & ML_DONTPEGBOTTOM)
|
if(line->flags & ML_DONTPEGBOTTOM)
|
||||||
|
|
|
@ -8637,11 +8637,14 @@ scriptwait:
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
item = activator->GiveInventoryType (static_cast<PClassAmmo *>(type));
|
item = activator->GiveInventoryType (static_cast<PClassAmmo *>(type));
|
||||||
|
if (item != NULL)
|
||||||
|
{
|
||||||
item->MaxAmount = STACK(1);
|
item->MaxAmount = STACK(1);
|
||||||
item->Amount = 0;
|
item->Amount = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
sp -= 2;
|
sp -= 2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -5002,7 +5002,7 @@ bool P_UsePuzzleItem(AActor *PuzzleItemUser, int PuzzleItemType)
|
||||||
start = PuzzleItemUser->GetPortalTransition(PuzzleItemUser->Height / 2);
|
start = PuzzleItemUser->GetPortalTransition(PuzzleItemUser->Height / 2);
|
||||||
end = PuzzleItemUser->Angles.Yaw.ToVector(usedist);
|
end = PuzzleItemUser->Angles.Yaw.ToVector(usedist);
|
||||||
|
|
||||||
FPathTraverse it(start.X, start.Y, end.X, end.Y, PT_ADDLINES | PT_ADDTHINGS);
|
FPathTraverse it(start.X, start.Y, end.X, end.Y, PT_DELTA | PT_ADDLINES | PT_ADDTHINGS);
|
||||||
intercept_t *in;
|
intercept_t *in;
|
||||||
|
|
||||||
while ((in = it.Next()))
|
while ((in = it.Next()))
|
||||||
|
|
|
@ -773,7 +773,7 @@ static void CalcSectorSoundOrg(const DVector3 &listenpos, const sector_t *sec, i
|
||||||
if (!(i_compatflags & COMPATF_SECTORSOUNDS))
|
if (!(i_compatflags & COMPATF_SECTORSOUNDS))
|
||||||
{
|
{
|
||||||
// Are we inside the sector? If yes, the closest point is the one we're on.
|
// Are we inside the sector? If yes, the closest point is the one we're on.
|
||||||
if (P_PointInSector(pos.X, pos.Y) == sec)
|
if (P_PointInSector(listenpos.X, listenpos.Y) == sec)
|
||||||
{
|
{
|
||||||
pos.X = (float)listenpos.X;
|
pos.X = (float)listenpos.X;
|
||||||
pos.Z = (float)listenpos.Y;
|
pos.Z = (float)listenpos.Y;
|
||||||
|
|
|
@ -1165,7 +1165,7 @@ void FMultiPatchTexture::ParsePatch(FScanner &sc, TexPart & part, bool silent, i
|
||||||
else if (sc.Compare("alpha"))
|
else if (sc.Compare("alpha"))
|
||||||
{
|
{
|
||||||
sc.MustGetFloat();
|
sc.MustGetFloat();
|
||||||
part.Alpha = clamp<blend_t>(int(sc.Float / BLENDUNIT), 0, BLENDUNIT);
|
part.Alpha = clamp<blend_t>(int(sc.Float * BLENDUNIT), 0, BLENDUNIT);
|
||||||
// bComplex is not set because it is only needed when the style is not OP_COPY.
|
// bComplex is not set because it is only needed when the style is not OP_COPY.
|
||||||
}
|
}
|
||||||
else if (sc.Compare("style"))
|
else if (sc.Compare("style"))
|
||||||
|
|
|
@ -542,7 +542,7 @@ static DWORD WINAPI WriteMiniDumpInAnotherThread (LPVOID lpParam)
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
void __cdecl Writef (HANDLE file, const char *format, ...)
|
void Writef (HANDLE file, const char *format, ...)
|
||||||
{
|
{
|
||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
va_list args;
|
va_list args;
|
||||||
|
|
|
@ -56,10 +56,6 @@
|
||||||
|
|
||||||
// MACROS ------------------------------------------------------------------
|
// MACROS ------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef _WIN32
|
|
||||||
#define __cdecl
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
// With versions of GCC newer than 4.2, it appears it was determined that the
|
// With versions of GCC newer than 4.2, it appears it was determined that the
|
||||||
// cost of an unaligned pointer on PPC was high enough to add padding to the
|
// cost of an unaligned pointer on PPC was high enough to add padding to the
|
||||||
|
@ -212,7 +208,7 @@ dir_tree_t *add_dir(const char *dirpath);
|
||||||
#endif
|
#endif
|
||||||
dir_tree_t *add_dirs(char **argv);
|
dir_tree_t *add_dirs(char **argv);
|
||||||
int count_files(dir_tree_t *trees);
|
int count_files(dir_tree_t *trees);
|
||||||
int __cdecl sort_cmp(const void *a, const void *b);
|
int sort_cmp(const void *a, const void *b);
|
||||||
file_sorted_t *sort_files(dir_tree_t *trees, int num_files);
|
file_sorted_t *sort_files(dir_tree_t *trees, int num_files);
|
||||||
void write_zip(const char *zipname, dir_tree_t *trees, int update);
|
void write_zip(const char *zipname, dir_tree_t *trees, int update);
|
||||||
int append_to_zip(FILE *zip_file, file_sorted_t *file, FILE *ozip, BYTE *odir);
|
int append_to_zip(FILE *zip_file, file_sorted_t *file, FILE *ozip, BYTE *odir);
|
||||||
|
@ -694,7 +690,7 @@ int count_files(dir_tree_t *trees)
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
int __cdecl sort_cmp(const void *a, const void *b)
|
int sort_cmp(const void *a, const void *b)
|
||||||
{
|
{
|
||||||
const file_sorted_t *sort1 = (const file_sorted_t *)a;
|
const file_sorted_t *sort1 = (const file_sorted_t *)a;
|
||||||
const file_sorted_t *sort2 = (const file_sorted_t *)b;
|
const file_sorted_t *sort2 = (const file_sorted_t *)b;
|
||||||
|
@ -1569,7 +1565,7 @@ int copy_zip_file(FILE *zip, file_entry_t *file, FILE *ozip, CentralDirectoryEnt
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
int __cdecl main (int argc, char **argv)
|
int main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
dir_tree_t *tree, *trees;
|
dir_tree_t *tree, *trees;
|
||||||
file_entry_t *file;
|
file_entry_t *file;
|
||||||
|
|
Loading…
Reference in a new issue