Browse Source

Avoid some warnings

pull/849/head
Ray 5 years ago
parent
commit
72ab65277b
1 changed files with 2 additions and 17 deletions
  1. +2
    -17
      src/physac.h

+ 2
- 17
src/physac.h View File

@ -323,8 +323,6 @@ static void InitTimer(void);
static uint64_t GetTimeCount(void); // Get hi-res MONOTONIC time measure in mseconds
static double GetCurrentTime(void); // Get current time measure in milliseconds
static int GetRandomNumber(int min, int max); // Returns a random number between min and max (both included)
// Math functions
static Vector2 MathCross(float value, Vector2 vector); // Returns the cross product of a vector and a value
static float MathCrossVector2(Vector2 v1, Vector2 v2); // Returns the cross product of two vectors
@ -1771,7 +1769,7 @@ static float FindAxisLeastPenetration(int *faceIndex, PhysicsShape shapeA, Physi
int bestIndex = 0;
PolygonData dataA = shapeA.vertexData;
PolygonData dataB = shapeB.vertexData;
o">//PolygonData dataB = shapeB.vertexData;
for (int i = 0; i < dataA.vertexCount; i++)
{
@ -1921,7 +1919,7 @@ static void InitTimer(void)
// Get hi-res MONOTONIC time measure in seconds
static uint64_t GetTimeCount(void)
{
uint64_t value;
uint64_t value = 0;
#if defined(_WIN32)
QueryPerformanceCounter((unsigned long long int *) &value);
@ -1946,19 +1944,6 @@ static double GetCurrentTime(void)
return (double)(GetTimeCount() - baseTime)/frequency*1000;
}
// Returns a random number between min and max (both included)
static int GetRandomNumber(int min, int max)
{
if (min > max)
{
int tmp = max;
max = min;
min = tmp;
}
return (rand()%(abs(max - min) + 1) + min);
}
// Returns the cross product of a vector and a value
static inline Vector2 MathCross(float value, Vector2 vector)
{

Loading…
Cancel
Save