mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
fbc9b3ddd7
The `point` struct was a relic of ActionScript and was added because of the Flash 'point' object. However, it seems like Simon Roth didn't realize that SDL has its own point struct. With this, `Maths.h` can be un-included from a couple headers, which exposes the fact that `preloader.cpp` was relying on `Maths.h` being transitively included from `Graphics.h`.
16 lines
271 B
C
16 lines
271 B
C
#ifndef MATHGAME_H
|
|
#define MATHGAME_H
|
|
|
|
#include <stdlib.h>
|
|
|
|
//// This header holds Maths functions that emulate the functionality of flash's
|
|
|
|
|
|
//random
|
|
//Returns 0..1
|
|
float inline fRandom(void)
|
|
{
|
|
return ( float(rand()) / float(RAND_MAX)) ;
|
|
}
|
|
|
|
#endif /* MATHGAME_H */
|