Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into for-0.56.0/sync
Browse files Browse the repository at this point in the history
  • Loading branch information
VReaperV committed Jan 28, 2025
2 parents 6538ceb + e9c9324 commit c236915
Show file tree
Hide file tree
Showing 23 changed files with 797 additions and 576 deletions.
8 changes: 6 additions & 2 deletions src/engine/qcommon/q_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,12 @@ inline void CrossProduct( const vec3_t v1, const vec3_t v2, vec3_t cross )
cross[ 2 ] = v1[ 0 ] * v2[ 1 ] - v1[ 1 ] * v2[ 0 ];
}

template<typename A>
A Square( A a )
{
return a * a;
}

template<typename A, typename B, typename C>
void VectorSubtract( const A &a, const B &b, C &&c )
{
Expand Down Expand Up @@ -2221,8 +2227,6 @@ struct fontInfo_t
char name[ MAX_QPATH ];
};

#define Square( x ) ( ( x ) * ( x ) )

// real time
//=============================================

Expand Down
Loading

0 comments on commit c236915

Please sign in to comment.