mirror of https://github.com/Nofated095/re-GTA.git
fixfixfix
This commit is contained in:
parent
3225fe3b92
commit
d8dd649617
|
@ -22,10 +22,6 @@
|
||||||
#include "WaterLevel.h"
|
#include "WaterLevel.h"
|
||||||
#include "patcher.h"
|
#include "patcher.h"
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> a644c4e9ceb440f53e31dd39f11a9a3c859ffb44
|
|
||||||
float TEXTURE_ADDU;
|
float TEXTURE_ADDU;
|
||||||
float TEXTURE_ADDV;
|
float TEXTURE_ADDV;
|
||||||
|
|
||||||
|
@ -282,12 +278,8 @@ CWaterLevel::GetWaterLevelNoWaves(float fX, float fY, float fZ, float *pfOutLeve
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
inline float
|
inline float
|
||||||
_GetWaterDrawDist()
|
_GetWaterDrawDist()
|
||||||
=======
|
|
||||||
inline float _GetWaterDrawDist()
|
|
||||||
>>>>>>> a644c4e9ceb440f53e31dd39f11a9a3c859ffb44
|
|
||||||
{
|
{
|
||||||
// if z less then 15.0f return 1200.0f
|
// if z less then 15.0f return 1200.0f
|
||||||
if ( TheCamera.GetPosition().z < 15.0f )
|
if ( TheCamera.GetPosition().z < 15.0f )
|
||||||
|
@ -300,12 +292,8 @@ inline float _GetWaterDrawDist()
|
||||||
return (TheCamera.GetPosition().z + -15.0f) * 800.0f / 45.0f + 1200.0f;
|
return (TheCamera.GetPosition().z + -15.0f) * 800.0f / 45.0f + 1200.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
inline float
|
inline float
|
||||||
_GetWavyDrawDist()
|
_GetWavyDrawDist()
|
||||||
=======
|
|
||||||
inline float _GetWavyDrawDist()
|
|
||||||
>>>>>>> a644c4e9ceb440f53e31dd39f11a9a3c859ffb44
|
|
||||||
{
|
{
|
||||||
if ( FindPlayerVehicle() && FindPlayerVehicle()->IsBoat() )
|
if ( FindPlayerVehicle() && FindPlayerVehicle()->IsBoat() )
|
||||||
return 120.0f;
|
return 120.0f;
|
||||||
|
@ -313,12 +301,8 @@ inline float _GetWavyDrawDist()
|
||||||
return 70.0f;
|
return 70.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
inline void
|
inline void
|
||||||
_GetCamBounds(bool *bUseCamStartY, bool *bUseCamEndY, bool *bUseCamStartX, bool *bUseCamEndX)
|
_GetCamBounds(bool *bUseCamStartY, bool *bUseCamEndY, bool *bUseCamStartX, bool *bUseCamEndX)
|
||||||
=======
|
|
||||||
inline void _GetCamBounds(bool *bUseCamStartY, bool *bUseCamEndY, bool *bUseCamStartX, bool *bUseCamEndX)
|
|
||||||
>>>>>>> a644c4e9ceb440f53e31dd39f11a9a3c859ffb44
|
|
||||||
{
|
{
|
||||||
if ( TheCamera.GetForward().z > -0.8f )
|
if ( TheCamera.GetForward().z > -0.8f )
|
||||||
{
|
{
|
||||||
|
@ -339,7 +323,6 @@ inline void _GetCamBounds(bool *bUseCamStartY, bool *bUseCamEndY, bool *bUseCamS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
float
|
float
|
||||||
SectorRadius(float fSize)
|
SectorRadius(float fSize)
|
||||||
{
|
{
|
||||||
|
@ -348,14 +331,6 @@ SectorRadius(float fSize)
|
||||||
|
|
||||||
void
|
void
|
||||||
CWaterLevel::RenderWater()
|
CWaterLevel::RenderWater()
|
||||||
=======
|
|
||||||
float SectorRadius(float fSize)
|
|
||||||
{
|
|
||||||
return sqrtf(powf(fSize, 2) + powf(fSize, 2)) * 1.0040916293f;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CWaterLevel::RenderWater()
|
|
||||||
>>>>>>> a644c4e9ceb440f53e31dd39f11a9a3c859ffb44
|
|
||||||
{
|
{
|
||||||
bool bUseCamEndX = false;
|
bool bUseCamEndX = false;
|
||||||
bool bUseCamStartY = false;
|
bool bUseCamStartY = false;
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
|
|
||||||
>>>>>>> a644c4e9ceb440f53e31dd39f11a9a3c859ffb44
|
|
||||||
#define WATER_BLOCK_SIZE LARGE_SECTOR_SIZE
|
#define WATER_BLOCK_SIZE LARGE_SECTOR_SIZE
|
||||||
#define WATER_FINEBLOCK_SIZE HUGE_SECTOR_SIZE
|
#define WATER_FINEBLOCK_SIZE HUGE_SECTOR_SIZE
|
||||||
#define WATER_Z_OFFSET (1.5f)
|
#define WATER_Z_OFFSET (1.5f)
|
||||||
|
@ -28,7 +24,6 @@
|
||||||
#define WATER_HEIGHT ((WATER_END_Y - WATER_START_Y))
|
#define WATER_HEIGHT ((WATER_END_Y - WATER_START_Y))
|
||||||
|
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
#define WATER_UNSIGN_X(x) ( (x) + (WATER_WIDTH /2) )
|
#define WATER_UNSIGN_X(x) ( (x) + (WATER_WIDTH /2) )
|
||||||
#define WATER_UNSIGN_Y(y) ( (y) + (WATER_HEIGHT/2) )
|
#define WATER_UNSIGN_Y(y) ( (y) + (WATER_HEIGHT/2) )
|
||||||
#define WATER_SIGN_X(x) ( (x) - (WATER_WIDTH /2) )
|
#define WATER_SIGN_X(x) ( (x) - (WATER_WIDTH /2) )
|
||||||
|
@ -65,44 +60,6 @@
|
||||||
#define WATER_FROM_EXTRAHUGE_SECTOR_Y(y) ( ((y) - (MAX_EXTRAHUGE_SECTORS/2)) * EXTRAHUGE_SECTOR_SIZE )
|
#define WATER_FROM_EXTRAHUGE_SECTOR_Y(y) ( ((y) - (MAX_EXTRAHUGE_SECTORS/2)) * EXTRAHUGE_SECTOR_SIZE )
|
||||||
#define WATER_TO_EXTRAHUGE_SECTOR_X(x) ( WATER_UNSIGN_X(x) / EXTRAHUGE_SECTOR_SIZE )
|
#define WATER_TO_EXTRAHUGE_SECTOR_X(x) ( WATER_UNSIGN_X(x) / EXTRAHUGE_SECTOR_SIZE )
|
||||||
#define WATER_TO_EXTRAHUGE_SECTOR_Y(y) ( WATER_UNSIGN_Y(y) / EXTRAHUGE_SECTOR_SIZE )
|
#define WATER_TO_EXTRAHUGE_SECTOR_Y(y) ( WATER_UNSIGN_Y(y) / EXTRAHUGE_SECTOR_SIZE )
|
||||||
=======
|
|
||||||
#define WATER_UNSIGN_X(x) ( (x) + (WATER_WIDTH /2) )
|
|
||||||
#define WATER_UNSIGN_Y(y) ( (y) + (WATER_HEIGHT/2) )
|
|
||||||
#define WATER_SIGN_X(x) ( (x) - (WATER_WIDTH /2) )
|
|
||||||
#define WATER_SIGN_Y(y) ( (y) - (WATER_HEIGHT/2) )
|
|
||||||
|
|
||||||
// 32
|
|
||||||
#define WATER_SMALL_X(x) ( WATER_UNSIGN_X(x) / MAX_SMALL_SECTORS )
|
|
||||||
#define WATER_SMALL_Y(y) ( WATER_UNSIGN_Y(y) / MAX_SMALL_SECTORS )
|
|
||||||
#define WATER_FROM_SMALL_SECTOR_X(x) ( ((x) - (MAX_SMALL_SECTORS/2) ) * SMALL_SECTOR_SIZE )
|
|
||||||
#define WATER_FROM_SMALL_SECTOR_Y(y) ( ((y) - (MAX_SMALL_SECTORS/2) ) * SMALL_SECTOR_SIZE )
|
|
||||||
#define WATER_TO_SMALL_SECTOR_X(x) ( WATER_UNSIGN_X(x) / SMALL_SECTOR_SIZE )
|
|
||||||
#define WATER_TO_SMALL_SECTOR_Y(y) ( WATER_UNSIGN_Y(y) / SMALL_SECTOR_SIZE )
|
|
||||||
|
|
||||||
// 64
|
|
||||||
#define WATER_LARGE_X(x) ( WATER_UNSIGN_X(x) / MAX_LARGE_SECTORS )
|
|
||||||
#define WATER_LARGE_Y(y) ( WATER_UNSIGN_Y(y) / MAX_LARGE_SECTORS )
|
|
||||||
#define WATER_FROM_LARGE_SECTOR_X(x) ( ((x) - (MAX_LARGE_SECTORS/2) ) * LARGE_SECTOR_SIZE )
|
|
||||||
#define WATER_FROM_LARGE_SECTOR_Y(y) ( ((y) - (MAX_LARGE_SECTORS/2) ) * LARGE_SECTOR_SIZE )
|
|
||||||
#define WATER_TO_LARGE_SECTOR_X(x) ( WATER_UNSIGN_X(x) / LARGE_SECTOR_SIZE )
|
|
||||||
#define WATER_TO_LARGE_SECTOR_Y(y) ( WATER_UNSIGN_Y(y) / LARGE_SECTOR_SIZE )
|
|
||||||
|
|
||||||
// 128
|
|
||||||
#define WATER_HUGE_X(x) ( WATER_UNSIGN_X(x) / MAX_HUGE_SECTORS )
|
|
||||||
#define WATER_HUGE_Y(y) ( WATER_UNSIGN_Y(y) / MAX_HUGE_SECTORS )
|
|
||||||
#define WATER_FROM_HUGE_SECTOR_X(x) ( ((x) - (MAX_HUGE_SECTORS/2) ) * HUGE_SECTOR_SIZE )
|
|
||||||
#define WATER_FROM_HUGE_SECTOR_Y(y) ( ((y) - (MAX_HUGE_SECTORS/2) ) * HUGE_SECTOR_SIZE )
|
|
||||||
#define WATER_TO_HUGE_SECTOR_X(x) ( WATER_UNSIGN_X(x) / HUGE_SECTOR_SIZE )
|
|
||||||
#define WATER_TO_HUGE_SECTOR_Y(y) ( WATER_UNSIGN_Y(y) / HUGE_SECTOR_SIZE )
|
|
||||||
|
|
||||||
// 256
|
|
||||||
#define WATER_EXTRAHUGE_X(x) ( WATER_UNSIGN_X(x) / MAX_EXTRAHUGE_SECTORS )
|
|
||||||
#define WATER_EXTRAHUGE_Y(y) ( WATER_UNSIGN_Y(y) / MAX_EXTRAHUGE_SECTORS )
|
|
||||||
#define WATER_FROM_EXTRAHUGE_SECTOR_X(x) ( ((x) - (MAX_EXTRAHUGE_SECTORS/2)) * EXTRAHUGE_SECTOR_SIZE )
|
|
||||||
#define WATER_FROM_EXTRAHUGE_SECTOR_Y(y) ( ((y) - (MAX_EXTRAHUGE_SECTORS/2)) * EXTRAHUGE_SECTOR_SIZE )
|
|
||||||
#define WATER_TO_EXTRAHUGE_SECTOR_X(x) ( WATER_UNSIGN_X(x) / EXTRAHUGE_SECTOR_SIZE )
|
|
||||||
#define WATER_TO_EXTRAHUGE_SECTOR_Y(y) ( WATER_UNSIGN_Y(y) / EXTRAHUGE_SECTOR_SIZE )
|
|
||||||
>>>>>>> a644c4e9ceb440f53e31dd39f11a9a3c859ffb44
|
|
||||||
|
|
||||||
|
|
||||||
#define MAX_BOAT_WAKES 8
|
#define MAX_BOAT_WAKES 8
|
||||||
|
|
Loading…
Reference in New Issue