From 597a55558f5ea77ea68d3b01ffaad56c2a6a2615 Mon Sep 17 00:00:00 2001 From: Kp Date: Fri, 8 Aug 2014 03:02:43 +0000 Subject: [PATCH] Use array<> for Segment_points --- common/main/segpoint.h | 5 ++--- similar/main/mglobal.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/common/main/segpoint.h b/common/main/segpoint.h index f5c951569..449144178 100644 --- a/common/main/segpoint.h +++ b/common/main/segpoint.h @@ -28,9 +28,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #define _SEGPOINTS_H #include "segment.h" +#include "3d.h" -struct g3s_point; - -extern g3s_point Segment_points[MAX_VERTICES]; +extern array Segment_points; #endif /* _SEGPOINTS_H */ diff --git a/similar/main/mglobal.cpp b/similar/main/mglobal.cpp index 7d735ad5a..72a2013a0 100644 --- a/similar/main/mglobal.cpp +++ b/similar/main/mglobal.cpp @@ -35,7 +35,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. // Global array of vertices, common to one mine. vms_vector Vertices[MAX_VERTICES]; -g3s_point Segment_points[MAX_VERTICES]; +array Segment_points; fix FrameTime = 0x1000; // Time since last frame, in seconds fix64 GameTime64 = 0; // Time in game, in seconds