Skip to content

Commit 6064774

Browse files
committed
.
1 parent a8d7503 commit 6064774

File tree

2 files changed

+3
-28
lines changed

2 files changed

+3
-28
lines changed

src/engine/renderer/EntityCache.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ void AddRefEntities() {
216216

217217
trRefEntity_t* ent = &entities[offset + i * 64];
218218

219+
Log::Warn( "entnum %u", offset + i * 64 );
220+
219221
TransformEntity( ent );
220222
RE_AddEntityToScene( ent );
221223

src/engine/renderer/tr_types.h

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ struct refEntity_t
240240

241241
int boundsAdd;
242242

243-
EntityTag positionOnTag = EntityTag::NONE;
243+
EntityTag positionOnTag;
244244
int attachmentEntity;
245245

246246
vec3_t lightingOrigin; // so multi-part models can be lit identically (RF_LIGHTING_ORIGIN)
@@ -260,33 +260,6 @@ struct refEntity_t
260260
std::string tag;
261261

262262
std::vector<BoneMod> boneMods;
263-
264-
refEntity_t& operator=( const refEntity_t& other ) {
265-
if ( this == &other ) {
266-
return *this;
267-
}
268-
269-
if ( !&other ) {
270-
Log::Warn( "bad" );
271-
}
272-
273-
memcpy( this, &other, offsetof( refEntity_t, tag ) );
274-
if ( other.tag.empty() ) {
275-
Log::Warn( "cpy empty" );
276-
} else {
277-
tag = other.tag;
278-
}
279-
boneMods = other.boneMods;
280-
281-
return *this;
282-
}
283-
284-
refEntity_t() {
285-
}
286-
287-
refEntity_t( const refEntity_t& other ) {
288-
*this = other;
289-
}
290263
};
291264

292265
struct EntityUpdate {

0 commit comments

Comments
 (0)