summaryrefslogtreecommitdiff
path: root/src/win95/chnktype.cpp
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-07-28 23:13:49 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commit71fa444424be52b9b2c3fd508ad663923d28a62c (patch)
treeea900efcb439d1889255e0c598dbf455608f36a4 /src/win95/chnktype.cpp
parentf759e35cd8399d8bffea4d59c5822db8f1002409 (diff)
Removed headers that were accidently checked in.
Lots of compiling.
Diffstat (limited to 'src/win95/chnktype.cpp')
-rw-r--r--src/win95/chnktype.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/win95/chnktype.cpp b/src/win95/chnktype.cpp
index bddaaae..d09728e 100644
--- a/src/win95/chnktype.cpp
+++ b/src/win95/chnktype.cpp
@@ -1079,10 +1079,12 @@ ChunkAnimSequence& ChunkAnimSequence::operator=(const ChunkAnimSequence &seq)
void ChunkAnimSequence::UpdateNormalsAndExtents(ChunkShape const * cs,List<int>* poly_not_in_bb)
{
+ int i;
+
if(!cs) return;
num_verts=cs->num_verts;
if(!v_normal_list)v_normal_list=new ChunkVectorFloat[cs->num_verts];
- for(int i=0;i<num_verts;i++)
+ for(i=0;i<num_verts;i++)
{
v_normal_list[i].x=0;
v_normal_list[i].y=0;
@@ -1169,8 +1171,10 @@ void ChunkAnimSequence::UpdateNormalsAndExtents(ChunkShape const * cs,List<int>*
void ChunkAnimSequence::DeleteInterpolatedFrames()
{
+ int i;
int NewNumFrames=NumFrames;
- for(int i=0;i<NumFrames;i++)
+
+ for(i=0;i<NumFrames;i++)
{
if(Frames[i]->flags & animframeflag_interpolated_frame)NewNumFrames--;
}
@@ -1218,4 +1222,4 @@ void ChunkAnimSequence::GenerateInterpolatedFrames(ChunkShape const *cs)
Frames=NewFrames;
NumFrames=NewNumFrames;
*/
-} \ No newline at end of file
+}