1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

moved inline functions to hyper.h

This commit is contained in:
Zeno Rogue 2019-03-11 18:38:04 +01:00
parent 6afa1f1fa0
commit 7f6957694a
2 changed files with 3 additions and 6 deletions

View File

@ -3577,8 +3577,9 @@ extern eLand safetyland;
extern int sagephase; extern int sagephase;
extern int lastsize; extern int lastsize;
extern int noiseuntil; extern int noiseuntil;
hyperpoint xpush0(ld x); hyperpoint cpush0(int d, ld x);
hyperpoint ypush0(ld x); inline hyperpoint xpush0(ld x) { return cpush0(0, x); }
inline hyperpoint ypush0(ld x) { return cpush0(1, x); }
transmatrix xspinpush(ld alpha, ld x); transmatrix xspinpush(ld alpha, ld x);
hyperpoint xspinpush0(ld alpha, ld x); hyperpoint xspinpush0(ld alpha, ld x);

View File

@ -287,10 +287,6 @@ inline hyperpoint cpush0(int c, ld x) {
return h; return h;
} }
inline hyperpoint xpush0(ld x) { return cpush0(0, x); }
inline hyperpoint ypush0(ld x) { return cpush0(1, x); }
inline hyperpoint xspinpush0(ld alpha, ld x) { inline hyperpoint xspinpush0(ld alpha, ld x) {
hyperpoint h = Hypc; hyperpoint h = Hypc;
h[DIM] = cos_auto(x); h[DIM] = cos_auto(x);