Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed May 31, 2024
1 parent 19696ac commit 7b8e46f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/engine/client/cg_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,9 @@ std::vector<std::vector<Keyboard::Key>> trap_Key_GetKeysForBinds(int team, const
int trap_Key_GetCharForScancode( int scancode );
bool trap_R_inPVS( const vec3_t p1, const vec3_t p2 );

void trap_R_BatchInPVS(
std::vector<bool> trap_R_BatchInPVS(
const vec3_t origin,
const std::vector<std::array<float, 3>>& posEntities,
std::vector<bool>& inPVS );
const std::vector<std::array<float, 3>>& posEntities );

bool trap_R_inPVVS( const vec3_t p1, const vec3_t p2 );
bool trap_R_LoadDynamicShader( const char *shadername, const char *shadertext );
Expand Down
10 changes: 5 additions & 5 deletions src/shared/client/cg_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,15 +472,15 @@ bool trap_R_inPVS( const vec3_t p1, const vec3_t p2 )
return res;
}

void trap_R_BatchInPVS(
std::vector<bool> trap_R_BatchInPVS(
const vec3_t origin,
const std::vector<std::array<float, 3>>& posEntities,
std::vector<bool>& inPVS )
const std::vector<std::array<float, 3>>& posEntities )
{
std::array<float, 3> myOrigin;
VectorCopy(origin, myOrigin);

VectorCopy(origin, myOrigin.data());
std::vector<bool> inPVS;
VM::SendMsg<Render::BatchInPVSMsg>(myOrigin, posEntities, inPVS);
return inPVS;
}

int trap_R_LightForPoint( vec3_t point, vec3_t ambientLight, vec3_t directedLight, vec3_t lightDir )
Expand Down

0 comments on commit 7b8e46f

Please sign in to comment.