CVehicle done

This commit is contained in:
aap
2021-08-04 13:55:01 +02:00
parent 0338d4c393
commit 621f941ff7
8 changed files with 235 additions and 113 deletions

View File

@ -902,6 +902,7 @@ void*
CVisibilityPlugins::AtomicConstructor(void *object, int32, int32)
{
ATOMICEXT(object)->modelId = -1;
ATOMICEXT(object)->flags = 0;
#ifdef VIS_DISTANCE_ALPHA
// This seems strange, want to start out invisible before fading in
// but maybe it's set elsewhere?

View File

@ -100,10 +100,8 @@ public:
struct AtomicExt
{
union {
int16 modelId; // used by SimpleModelInfo
int flags; // used by ClumpModelInfo
};
int16 modelId; // used by SimpleModelInfo
uint16 flags; // used by ClumpModelInfo
#ifdef VIS_DISTANCE_ALPHA
int distanceAlpha;
#endif