Skip to content

Commit 27bc966

Browse files
committed
Consistently name entity cache-related funcs
It could be annoying when following the call hierarchy across the function pointers, if the functions have different name than the function pointers.
1 parent ed330b9 commit 27bc966

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/engine/renderer/EntityCache.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ void ClearEntityCache() {
264264
}
265265
}
266266

267-
std::vector<LerpTagSync> SyncEntityCacheToCGame( const std::vector<LerpTagUpdate>& lerpTags ) {
267+
std::vector<LerpTagSync> RE_SyncLerpTags( const std::vector<LerpTagUpdate>& lerpTags ) {
268268
std::vector<LerpTagSync> entityOrientations;
269269
entityOrientations.reserve( lerpTags.size() );
270270

@@ -284,7 +284,7 @@ std::vector<LerpTagSync> SyncEntityCacheToCGame( const std::vector<LerpTagUpdate
284284
return entityOrientations;
285285
}
286286

287-
void SyncEntityCacheFromCGame( const std::vector<EntityUpdate>& ents ) {
287+
void RE_SyncRefEntities( const std::vector<EntityUpdate>& ents ) {
288288
for ( const EntityUpdate& ent : ents ) {
289289
bool flip = entities[ent.id].e.active != ent.ent.active;
290290

src/engine/renderer/EntityCache.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void TransformEntity( trRefEntity_t* ent );
5353

5454
void ClearEntityCache();
5555

56-
std::vector<LerpTagSync> SyncEntityCacheToCGame( const std::vector<LerpTagUpdate>& lerpTags );
57-
void SyncEntityCacheFromCGame( const std::vector<EntityUpdate>& ents );
56+
std::vector<LerpTagSync> RE_SyncLerpTags( const std::vector<LerpTagUpdate>& lerpTags );
57+
void RE_SyncRefEntities( const std::vector<EntityUpdate>& ents );
5858

5959
#endif // ENTITY_CACHE_H

src/engine/renderer/tr_init.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,8 +1693,8 @@ ScreenshotCmd screenshotPNGRegistration("screenshotPNG", ssFormat_t::SSF_PNG, "p
16931693

16941694
re.ClearScene = RE_ClearScene;
16951695
re.AddRefEntityToScene = RE_AddRefEntityToScene;
1696-
re.SyncRefEntities = SyncEntityCacheFromCGame;
1697-
re.SyncLerpTags = SyncEntityCacheToCGame;
1696+
re.SyncRefEntities = RE_SyncRefEntities;
1697+
re.SyncLerpTags = RE_SyncLerpTags;
16981698

16991699
re.AddPolyToScene = RE_AddPolyToSceneET;
17001700
re.AddPolysToScene = RE_AddPolysToScene;

0 commit comments

Comments
 (0)