diff options
| author | Steven Fuller <relnev@icculus.org> | 2008-05-03 22:18:51 -0700 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:37 +0200 |
| commit | e3070e708816c3a6ab61816c9cd0e242763b6aa2 (patch) | |
| tree | b01a3a27f42f1c91af3bd726112632c77324cb72 /src/win95/chnktype.cpp | |
| parent | d5c94a666b1e6049b6364863aa8c68d62a1310dd (diff) | |
Removed UseOldChunkLoader.
Diffstat (limited to 'src/win95/chnktype.cpp')
| -rw-r--r-- | src/win95/chnktype.cpp | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/src/win95/chnktype.cpp b/src/win95/chnktype.cpp index 754dc7d..6bef4de 100644 --- a/src/win95/chnktype.cpp +++ b/src/win95/chnktype.cpp @@ -446,10 +446,6 @@ ChunkShape::~ChunkShape() if (texture_fns) for (int i = 0; i<num_texfiles; i++) if (texture_fns[i]) delete texture_fns[i]; - - #if UseOldChunkLoader - if(float_v_list) delete float_v_list; - #endif } ChunkShape::ChunkShape() @@ -467,10 +463,6 @@ ChunkShape::ChunkShape() texture_fns = 0; radius_about_centre=0; - - #if UseOldChunkLoader - float_v_list=0; - #endif } @@ -532,10 +524,6 @@ ChunkShape::ChunkShape(const ChunkShape &shp) centre=shp.centre; radius_about_centre=shp.radius_about_centre; - - #if UseOldChunkLoader - float_v_list=0; - #endif } ChunkShape& ChunkShape::operator=(const ChunkShape &shp) @@ -608,13 +596,7 @@ ChunkShape& ChunkShape::operator=(const ChunkShape &shp) centre=shp.centre; radius_about_centre=shp.radius_about_centre; - #if UseOldChunkLoader - if(float_v_list) delete float_v_list; - float_v_list=0; - #endif - return *this; - } void ChunkShape::rescale (double scale) @@ -648,33 +630,14 @@ void ChunkShape::rescale (double scale) VMod_Arr_Item::VMod_Arr_Item() { - #if UseOldChunkLoader - o_name = 0; - #endif } VMod_Arr_Item::~VMod_Arr_Item() { - #if UseOldChunkLoader - if (o_name) - delete o_name; - #endif } VMod_Arr_Item::VMod_Arr_Item(const VMod_Arr_Item & vma) { - #if UseOldChunkLoader - if (vma.o_name) - { - o_name = new char [strlen(vma.o_name)+1]; - strcpy (o_name, vma.o_name); - } - else - { - o_name = 0; - } - #endif - branch_no = vma.branch_no; flags = vma.flags; spare = vma.spare; @@ -685,21 +648,6 @@ VMod_Arr_Item& VMod_Arr_Item::operator=(const VMod_Arr_Item & vma) { if (&vma == this) return(*this); - #if UseOldChunkLoader - if (o_name) - delete o_name; - - if (vma.o_name) - { - o_name = new char [strlen(vma.o_name)+1]; - strcpy (o_name, vma.o_name); - } - else - { - o_name = 0; - } - #endif - branch_no = vma.branch_no; flags = vma.flags; spare = vma.spare; @@ -726,9 +674,6 @@ BOOL operator!=(const VMod_Arr_Item & vm1, const VMod_Arr_Item & vm2) Adjacent_Module::Adjacent_Module() { flags = 0; - #if UseOldChunkLoader - o_name = 0; - #endif entry_point.x=0; entry_point.y=0; entry_point.z=0; @@ -736,25 +681,10 @@ Adjacent_Module::Adjacent_Module() Adjacent_Module::~Adjacent_Module() { - #if UseOldChunkLoader - if (o_name) - delete o_name; - #endif } Adjacent_Module::Adjacent_Module(const Adjacent_Module & am) { - #if UseOldChunkLoader - if (am.o_name) - { - o_name = new char [strlen(am.o_name)+1]; - strcpy (o_name, am.o_name); - } - else - { - o_name = 0; - } - #endif object_index=am.object_index; flags = am.flags; entry_point = am.entry_point; @@ -764,21 +694,6 @@ Adjacent_Module& Adjacent_Module::operator=(const Adjacent_Module & am) { if (&am == this) return(*this); - #if UseOldChunkLoader - if (o_name) - delete o_name; - - if (am.o_name) - { - o_name = new char [strlen(am.o_name)+1]; - strcpy (o_name, am.o_name); - } - else - { - o_name = 0; - } - #endif - object_index=am.object_index; flags = am.flags; entry_point = am.entry_point; |
