Skip to content

Commit c236915

Browse files
committed
Merge remote-tracking branch 'upstream/master' into for-0.56.0/sync
2 parents 6538ceb + e9c9324 commit c236915

23 files changed

Lines changed: 797 additions & 576 deletions

src/engine/qcommon/q_shared.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,12 @@ inline void CrossProduct( const vec3_t v1, const vec3_t v2, vec3_t cross )
458458
cross[ 2 ] = v1[ 0 ] * v2[ 1 ] - v1[ 1 ] * v2[ 0 ];
459459
}
460460

461+
template<typename A>
462+
A Square( A a )
463+
{
464+
return a * a;
465+
}
466+
461467
template<typename A, typename B, typename C>
462468
void VectorSubtract( const A &a, const B &b, C &&c )
463469
{
@@ -2221,8 +2227,6 @@ struct fontInfo_t
22212227
char name[ MAX_QPATH ];
22222228
};
22232229

2224-
#define Square( x ) ( ( x ) * ( x ) )
2225-
22262230
// real time
22272231
//=============================================
22282232

0 commit comments

Comments
 (0)