summaryrefslogtreecommitdiffstats
path: root/src/modfile.cpp
diff options
context:
space:
mode:
authorKrzysztof H <krzys_h@interia.pl>2012-03-09 17:08:05 +0100
committerKrzysztof H <krzys_h@interia.pl>2012-03-09 17:08:05 +0100
commit84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71 (patch)
tree842825145ada8e6f53d1de9f100383cc028d2b46 /src/modfile.cpp
parenta4c804b49ec872b71bd5a0167c3ad45704a3cc30 (diff)
downloadcolobot-84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71.tar.gz
colobot-84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71.tar.bz2
colobot-84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71.zip
Added license info using a small program SrcHead.
Diffstat (limited to 'src/modfile.cpp')
-rw-r--r--src/modfile.cpp34
1 files changed, 24 insertions, 10 deletions
diff --git a/src/modfile.cpp b/src/modfile.cpp
index f54f3c9..131684c 100644
--- a/src/modfile.cpp
+++ b/src/modfile.cpp
@@ -1,4 +1,18 @@
-// modfile.cpp
+// * This file is part of the COLOBOT source code
+// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
+// *
+// * This program is free software: you can redistribute it and/or modify
+// * it under the terms of the GNU General Public License as published by
+// * the Free Software Foundation, either version 3 of the License, or
+// * (at your option) any later version.
+// *
+// * This program is distributed in the hope that it will be useful,
+// * but WITHOUT ANY WARRANTY; without even the implied warranty of
+// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// * GNU General Public License for more details.
+// *
+// * You should have received a copy of the GNU General Public License
+// * along with this program. If not, see .
#define STRICT
#define D3D_OVERLOADS
@@ -46,7 +60,7 @@ CModFile::~CModFile()
-// Crée un triangle dans la structure interne.
+// Cr�e un triangle dans la structure interne.
BOOL CModFile::CreateTriangle(D3DVECTOR p1, D3DVECTOR p2, D3DVECTOR p3,
float min, float max)
@@ -428,25 +442,25 @@ BOOL CModFile::AddModel(char *filename, int first, BOOL bEdit, BOOL bMeta)
if ( !bEdit )
{
- limit[0] = m_engine->RetLimitLOD(0); // frontière AB selon config
- limit[1] = m_engine->RetLimitLOD(1); // frontière BC selon config
+ limit[0] = m_engine->RetLimitLOD(0); // fronti�re AB selon config
+ limit[1] = m_engine->RetLimitLOD(1); // fronti�re BC selon config
- // Frontières standard -> config.
+ // Fronti�res standard -> config.
for ( i=first ; i<m_triangleUsed ; i++ )
{
if ( m_triangleTable[i].min == 0.0f &&
- m_triangleTable[i].max == 100.0f ) // résolution A ?
+ m_triangleTable[i].max == 100.0f ) // r�solution A ?
{
m_triangleTable[i].max = limit[0];
}
else if ( m_triangleTable[i].min == 100.0f &&
- m_triangleTable[i].max == 200.0f ) // résolution B ?
+ m_triangleTable[i].max == 200.0f ) // r�solution B ?
{
m_triangleTable[i].min = limit[0];
m_triangleTable[i].max = limit[1];
}
else if ( m_triangleTable[i].min == 200.0f &&
- m_triangleTable[i].max == 1000000.0f ) // résolution C ?
+ m_triangleTable[i].max == 1000000.0f ) // r�solution C ?
{
m_triangleTable[i].min = limit[1];
}
@@ -498,7 +512,7 @@ BOOL CModFile::WriteModel(char *filename)
}
-// Crée l'objet dans le moteur 3D.
+// Cr�e l'objet dans le moteur 3D.
BOOL CModFile::CreateEngineObject(int objRank, int addState)
{
@@ -619,7 +633,7 @@ void CModFile::Mirror()
}
-// Retourne le pointeur à la liste de triangles.
+// Retourne le pointeur � la liste de triangles.
void CModFile::SetTriangleUsed(int total)
{