mirror of
https://github.com/halpz/re3.git
synced 2025-07-21 10:09:48 +00:00
CGame done, Peds, fixes
This commit is contained in:
@ -29,7 +29,9 @@ bool gOccluderCoorsValid[8];
|
||||
CVector gOccluderCoorsOnScreen[8];
|
||||
CVector gOccluderCoors[8];
|
||||
|
||||
#ifndef MASTER
|
||||
bool bDisplayOccDebugStuff;
|
||||
#endif
|
||||
|
||||
void
|
||||
COcclusion::Init(void)
|
||||
@ -39,7 +41,9 @@ COcclusion::Init(void)
|
||||
NearbyList = -1;
|
||||
ListWalkThroughFA = -1;
|
||||
PreviousListWalkThroughFA = -1;
|
||||
#ifndef MASTER
|
||||
bDisplayOccDebugStuff = false;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
@ -436,6 +440,7 @@ bool COcclusion::IsPositionOccluded(CVector pos, float side) {
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifndef MASTER
|
||||
#include "Lines.h"
|
||||
|
||||
RwIm2DVertex vertexbufferT[2];
|
||||
@ -476,3 +481,4 @@ void COcclusion::Render() {
|
||||
|
||||
DefinedState();
|
||||
}
|
||||
#endif
|
@ -49,10 +49,14 @@ public:
|
||||
static bool OccluderHidesBehind(CActiveOccluder *occl1, CActiveOccluder *occl2);
|
||||
static bool IsAABoxOccluded(CVector pos, float width, float length, float height);
|
||||
static bool IsPositionOccluded(CVector pos, float side);
|
||||
#ifndef MASTER
|
||||
static void Render();
|
||||
#endif
|
||||
};
|
||||
|
||||
bool CalcScreenCoors(CVector const &in, CVector *out, float *outw, float *outh);
|
||||
bool CalcScreenCoors(CVector const &in, CVector *out);
|
||||
|
||||
#ifndef MASTER
|
||||
extern bool bDisplayOccDebugStuff;
|
||||
#endif
|
@ -99,7 +99,7 @@ CPlayerSkin::GetSkinTexture(const char *texName)
|
||||
CTxdStore::PopCurrentTxd();
|
||||
if (tex != nil) return tex;
|
||||
|
||||
if (strcmp(DEFAULT_SKIN_NAME, texName) == 0)
|
||||
if (strcmp(DEFAULT_SKIN_NAME, texName) == 0 || texName[0] == '\0')
|
||||
sprintf(gString, "models\\generic\\player.bmp");
|
||||
else
|
||||
sprintf(gString, "skins\\%s.bmp", texName);
|
||||
|
Reference in New Issue
Block a user