feat: TU19 (Dec 2014) Features & Content (#155)

* try to resolve merge conflict

* feat: TU19 (Dec 2014) Features & Content (#32)

* December 2014 files

* Working release build

* Fix compilation issues

* Add sound to Windows64Media

* Add DLC content and force Tutorial DLC

* Revert "Add DLC content and force Tutorial DLC"

This reverts commit 97a4399472.

* Disable broken light packing

* Disable breakpoint during DLC texture map load

Allows DLC loading but the DLC textures are still broken

* Fix post build not working

* ...

* fix vs2022 build

* fix cmake build

---------

Co-authored-by: Loki <lokirautio@gmail.com>
This commit is contained in:
daoge
2026-03-03 03:04:10 +08:00
committed by GitHub
parent 84c31a2331
commit b3feddfef3
2069 changed files with 264842 additions and 139522 deletions

View File

@@ -18,9 +18,9 @@ Pos::Pos(int x, int y, int z)
Pos::Pos(Pos *position)
{
this->x = position->x;
this->y = position->y;
this->z = position->z;
x = position->x;
y = position->y;
z = position->z;
}
//@Override
@@ -71,9 +71,9 @@ void Pos::set(int x, int y, int z)
void Pos::set(Pos *pos)
{
this->x = pos->x;
this->y = pos->y;
this->z = pos->z;
x = pos->x;
y = pos->y;
z = pos->z;
}
Pos *Pos::above()
@@ -145,93 +145,93 @@ void Pos::move(int x, int y, int z)
void Pos::move(Pos pos)
{
this->x += pos.x;
this->y += pos.y;
this->z += pos.z;
x += pos.x;
y += pos.y;
z += pos.z;
}
void Pos::moveX(int steps)
{
this->x += steps;
x += steps;
}
void Pos::moveY(int steps)
{
this->y += steps;
y += steps;
}
void Pos::moveZ(int steps)
{
this->z += steps;
z += steps;
}
void Pos::moveUp(int steps)
{
this->y += steps;
y += steps;
}
void Pos::moveUp()
{
this->y++;
y++;
}
void Pos::moveDown(int steps)
{
this->y -= steps;
y -= steps;
}
void Pos::moveDown()
{
this->y--;
y--;
}
void Pos::moveEast(int steps)
{
this->x += steps;
x += steps;
}
void Pos::moveEast()
{
this->x++;
x++;
}
void Pos::moveWest(int steps)
{
this->x -= steps;
x -= steps;
}
void Pos::moveWest()
{
this->x--;
x--;
}
void Pos::moveNorth(int steps)
{
this->z -= steps;
z -= steps;
}
void Pos::moveNorth()
{
this->z--;
z--;
}
void Pos::moveSouth(int steps)
{
this->z += steps;
z += steps;
}
void Pos::moveSouth()
{
this->z++;
z++;
}
double Pos::dist(int x, int y, int z)
{
int dx = this->x - x;
int dy = this->y - y;
int dz = this->z - z;
double dx = this->x - x;
double dy = this->y - y;
double dz = this->z - z;
return sqrt( (double) dx * dx + dy * dy + dz * dz);
return sqrt( dx * dx + dy * dy + dz * dz);
}
double Pos::dist(Pos *pos)
@@ -241,8 +241,13 @@ double Pos::dist(Pos *pos)
float Pos::distSqr(int x, int y, int z)
{
int dx = this->x - x;
int dy = this->y - y;
int dz = this->z - z;
float dx = this->x - x;
float dy = this->y - y;
float dz = this->z - z;
return dx * dx + dy * dy + dz * dz;
}
float Pos::distSqr(Pos *pos)
{
return distSqr(pos->x, pos->y, pos->z);
}