summaryrefslogtreecommitdiff
path: root/src/kshape.c
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-12-06 00:22:46 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commit9f006f18fe497c1ef12cd2973045fadbd500aaac (patch)
treefab2f2562efbcfa83188797a966b32bd5810d7cc /src/kshape.c
parent4508748944c293618d775e346c998f025cf6d1cd (diff)
Many warnings cleaned up (Tim Beckmann)
Menus.
Diffstat (limited to 'src/kshape.c')
-rw-r--r--src/kshape.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/kshape.c b/src/kshape.c
index 2287b49..124f58a 100644
--- a/src/kshape.c
+++ b/src/kshape.c
@@ -92,22 +92,14 @@ void SetupShapePipeline(void);
void ShapePipeline(SHAPEHEADER *shapePtr);
static void GouraudPolygon_Construct(POLYHEADER *polyPtr);
-static void GouraudPolygon_Output(POLYHEADER *inputPolyPtr, RENDERVERTEX *renderVerticesPtr);
-
-static void TexturedPolygon_Construct(POLYHEADER *polyPtr);
-static void TexturedPolygon_Output(POLYHEADER *inputPolyPtr, RENDERVERTEX *renderVerticesPtr);
-
static void GouraudTexturedPolygon_Construct(POLYHEADER *polyPtr);
static void (*VertexIntensity)(RENDERVERTEX *renderVertexPtr);
-static void VertexIntensity_Hierarchical(RENDERVERTEX *renderVertexPtr);
-static void VertexIntensity_PreLit(RENDERVERTEX *renderVertexPtr);
static void VertexIntensity_Pred_Thermal(RENDERVERTEX *renderVertexPtr);
static void VertexIntensity_Pred_SeeAliens(RENDERVERTEX *renderVertexPtr);
static void VertexIntensity_Pred_SeePredatorTech(RENDERVERTEX *renderVertexPtr);
static void VertexIntensity_ImageIntensifier(RENDERVERTEX *renderVertexPtr);
-static void VertexIntensity_Standard(RENDERVERTEX *renderVertexPtr);
static void VertexIntensity_Alien_Sense(RENDERVERTEX *renderVertexPtr);
static void VertexIntensity_Standard_Opt(RENDERVERTEX *renderVertexPtr);
@@ -157,7 +149,7 @@ VECTORCH Global_LightVector={1,};
Global variables and arrays
*/
-VECTORCH RotatedPts[maxrotpts]={1,};
+VECTORCH RotatedPts[maxrotpts]={{1,}};
int ItemColour=1;
@@ -180,9 +172,9 @@ static COLOURINTENSITIES ColourIntensityArray[maxrotpts];
-RENDERPOLYGON RenderPolygon={1,};
-RENDERVERTEX VerticesBuffer[9]={1,};
-static RENDERVERTEX TriangleVerticesBuffer[3]={1,};
+RENDERPOLYGON RenderPolygon;
+RENDERVERTEX VerticesBuffer[9]={{1,}};
+static RENDERVERTEX TriangleVerticesBuffer[3]={{1,}};
static int *VertexNumberPtr=(int*)1;
@@ -5875,7 +5867,7 @@ void RenderSmokeTest(void)
{45300,0+ 1000, 26000+-1000},
};
- extern int CurrentLightAtPlayer;
+
int i;
if (image) a = 255-a;
@@ -6501,7 +6493,6 @@ void RenderLightFlare(VECTORCH *positionPtr, unsigned int colour)
// int particleSize = particlePtr->Size;
z=ONE_FIXED;
{
- extern int SmartTargetSightX, SmartTargetSightY;
extern SCREENDESCRIPTORBLOCK ScreenDescriptorBlock;
centreX = DIV_FIXED(point.vx,point.vz);
centreY = DIV_FIXED(point.vy,point.vz);