File encoding preservation + content structure to help browse the code

This commit is contained in:
Alexandre Fontoura
2021-10-28 15:20:01 +01:00
parent c5f4f6ba25
commit 23151219b2
90 changed files with 1946 additions and 1815 deletions

View File

@@ -28,12 +28,12 @@ UBYTE *LastPtr ;
WORD CamAlpha, CamBeta, CamGamma ;
/*ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ*
Û Û ÛßßßÛ Û ÛßßßÛ ÛÜ ÜÛ ÛßßßÛ ÛßßßÛ
ÛÛßßÛ ÛÛ Û ÛÛ ÛÛ Û ÛÛß Û ÛÛßßÛ ÛÛßßß
ßß ß ßßßßß ßßßßß ßßßßß ßß ß ßß ß ßß
*ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ*/
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*══════════════════════════════════════════════════════════════════════════*
█ █▀▀▀█ █ █▀▀▀█ █▄ ▄█ █▀▀▀█ █▀▀▀█
██▀▀█ ██ █ ██ ██ █ ██▀ █ ██▀▀█ ██▀▀▀
▀▀ ▀ ▀▀▀▀▀ ▀▀▀▀▀ ▀▀▀▀▀ ▀▀ ▀ ▀▀ ▀ ▀▀
*══════════════════════════════════════════════════════════════════════════*/
/*──────────────────────────────────────────────────────────────────────────*/
// calcule coor mapping. 256*256 -> polys
@@ -79,7 +79,7 @@ void ComputeCoorMapping()
}
}
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*──────────────────────────────────────────────────────────────────────────*/
void ComputeCoorGlobe()
{
@@ -126,7 +126,7 @@ void ComputeCoorGlobe()
}
}
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*──────────────────────────────────────────────────────────────────────────*/
// compute projection sphere
int z_sort( WORD *a, WORD *b)
@@ -180,7 +180,7 @@ void ComputeGlobeProj()
}
/*ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ*/
/*══════════════════════════════════════════════════════════════════════════*/
void DrawHoloMap( WORD calpha, WORD cbeta, WORD cgamma )
{
@@ -237,12 +237,12 @@ void DrawHoloMap( WORD calpha, WORD cbeta, WORD cgamma )
}
}
/*ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ*
Û Û ÛßßßÛ Û ÛßßßÛ ÛßßßÛ ÛßßÛ Û
ÛÛßßÛ ÛÛ Û ÛÛ ÛÛ Û ÛÛ Û ÛÛßßÛ ÜÜ Û
ßß ß ßßßßß ßßßßß ßßßßß ßßßßß ßßßßß ßßßßß ßßßßß
*ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ*/
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*══════════════════════════════════════════════════════════════════════════*
█ █▀▀▀█ █ █▀▀▀█ █▀▀▀█ █▀▀█
██▀▀█ ██ █ ██ ██ ██ █ ██▀▀█ ▄▄
▀▀ ▀ ▀▀▀▀▀ ▀▀▀▀▀ ▀▀▀▀▀ ▀▀▀▀▀ ▀▀▀▀▀ ▀▀▀▀▀ ▀▀▀▀▀
*══════════════════════════════════════════════════════════════════════════*/
/*──────────────────────────────────────────────────────────────────────────*/
void DrawListPos( WORD calpha, WORD cbeta, WORD cgamma, WORD pos )
{
@@ -342,7 +342,7 @@ void DrawListPos( WORD calpha, WORD cbeta, WORD cgamma, WORD pos )
}
}
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*──────────────────────────────────────────────────────────────────────────*/
LONG SearchNextArrow( LONG num )
{
@@ -358,7 +358,7 @@ LONG SearchNextArrow( LONG num )
return -1 ;
}
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*──────────────────────────────────────────────────────────────────────────*/
LONG SearchPrevArrow( LONG num )
{
@@ -376,15 +376,15 @@ LONG SearchPrevArrow( LONG num )
return -1 ;
}
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*──────────────────────────────────────────────────────────────────────────*/
void SetHoloPos( UBYTE num )
{
// if( !(TabHoloPos[num] & 64) ) // dj… visit
// if( !(TabHoloPos[num] & 64) ) // déjà visité
{
TabHoloPos[num] = 1 + 128 ;
}
}
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*──────────────────────────────────────────────────────────────────────────*/
void ClrHoloPos( UBYTE num )
{
@@ -392,7 +392,7 @@ void ClrHoloPos( UBYTE num )
TabHoloPos[num] |= 64 ; // cube done
}
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*──────────────────────────────────────────────────────────────────────────*/
void DrawTitle( WORD x, WORD y, WORD num )
{
@@ -439,7 +439,7 @@ void DrawTitle( WORD x, WORD y, WORD num )
CopyBlockPhys( x0,y0, x1,y1 ) ;
}
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*──────────────────────────────────────────────────────────────────────────*/
#define SIZE_CURSOR 20
@@ -452,8 +452,8 @@ void DrawCurseur()
15 ) ;
}
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*──────────────────────────────────────────────────────────────────────────*/
/*──────────────────────────────────────────────────────────────────────────*/
void InitHoloDatas()
{
@@ -522,20 +522,20 @@ void InitHoloDatas()
RotPal[(32+n)*3 + 2] = PalettePcx[(12*16+n)*3 + 2] ;
}
// precalcul coordonnes diverses (stock dans screen)
// precalcul coordonnées diverses (stock dans screen)
ComputeCoorMapping() ;
ComputeCoorGlobe() ;
RotPalPos = 0 ;
}
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ*
Û Û ÛßßßÛ Û ÛßßßÛ ÛÜ ÜÛ ÛßßßÛ ÛßßßÛ
ÛÛßßÛ ÛÛ Û ÛÛ ÛÛ Û ÛÛß Û ÛÛßßÛ ÛÛßßß
ßß ß ßßßßß ßßßßß ßßßßß ßß ß ßß ß ßß
*ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ*/
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*──────────────────────────────────────────────────────────────────────────*/
/*══════════════════════════════════════════════════════════════════════════*
█ █▀▀▀█ █ █▀▀▀█ █▄ ▄█ █▀▀▀█ █▀▀▀█
██▀▀█ ██ █ ██ ██ █ ██▀ █ ██▀▀█ ██▀▀▀
▀▀ ▀ ▀▀▀▀▀ ▀▀▀▀▀ ▀▀▀▀▀ ▀▀ ▀ ▀▀ ▀ ▀▀
*══════════════════════════════════════════════════════════════════════════*/
/*──────────────────────────────────────────────────────────────────────────*/
void HoloMap()
{
@@ -753,7 +753,7 @@ Text( 0,30, "%Fcurrent:%d mess:%d ", current, ListHoloPos[current].Mess ) ;
DrawListPos( calpha, cbeta, cgamma, 0 ) ;
// draw sphŠre
// draw sphère
// SetFollowCamera( 0,0,0, calpha,cbeta,cgamma, ZOOM_BIG_HOLO ) ;
SetInverseAngleCamera( calpha,cbeta,cgamma ) ;
CameraXr = 0 ;
@@ -836,12 +836,12 @@ Text( 0,30, "%Fcurrent:%d mess:%d ", current, ListHoloPos[current].Mess ) ;
RestoreTimer() ;
}
/*ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ*
Û Û ÛßßßÛ Û ÛßßßÛ ßßÛßß ÛßßßÛ ÛßßßÛ Û
ÛÛßßÛ ÛÛ Û ÛÛ ÛÛ Û ÛÛ ÛÛßÛß ÛÛßßÛ ÜÜ Û
ßß ß ßßßßß ßßßßß ßßßßß ßß ßß ß ßß ß ßßßßß
*ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ*/
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*══════════════════════════════════════════════════════════════════════════*
█ █▀▀▀█ █ █▀▀▀█ ▀▀█▀▀ █▀▀▀█ █▀▀▀█
██▀▀█ ██ █ ██ ██ ██ ██▀█▀ ██▀▀█ ▄▄
▀▀ ▀ ▀▀▀▀▀ ▀▀▀▀▀ ▀▀▀▀▀ ▀▀ ▀▀ ▀ ▀▀ ▀ ▀▀▀▀▀
*══════════════════════════════════════════════════════════════════════════*/
/*──────────────────────────────────────────────────────────────────────────*/
// 0 cube source
// 1 cube dest
@@ -855,7 +855,7 @@ Text( 0,30, "%Fcurrent:%d mess:%d ", current, ListHoloPos[current].Mess ) ;
// beta
// }
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*──────────────────────────────────────────────────────────────────────────*/
void DrawHoloObj( UBYTE *ptr3do, WORD alpha, WORD beta, WORD size )
{
@@ -883,7 +883,7 @@ void DrawHoloObj( UBYTE *ptr3do, WORD alpha, WORD beta, WORD size )
CopyBlockPhys( ScreenXmin, ScreenYmin, ScreenXmax, ScreenYmax ) ;
}
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*──────────────────────────────────────────────────────────────────────────*/
WORD *GiveTrajPtr( LONG numtraj )
{
@@ -902,8 +902,8 @@ WORD *GiveTrajPtr( LONG numtraj )
return ptr ;
}
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
/*──────────────────────────────────────────────────────────────────────────*/
/*──────────────────────────────────────────────────────────────────────────*/
void HoloTraj( WORD numtraj )
{