mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-02 14:40:40 +00:00
1354d52c05
* Remove fix16.h/cpp and utilise library from m_fixed.h. * Extend m_fixed.h with two inline functions for int to/from float operations. * Replace fix16_floor operations with those from xs_Float.h * Replace multiple Q16.16 conversions from 0 to just be 0. * Replaced all found in-game bit-shifts and multiplications/divisions with inline functions from m_fixed.h * Replaced many casts of FRACUNIT as double in SW's panel.cpp as it is converted to double by way of type promotion. * Fixed missed precision fixes in SW's panel.cpp where some types weren't declared correctly. * Replaced 100+ `Cos()/Sin() >> 16` operations for Blood with inline functions `CosScale16()/SinScale16()`.
15 lines
525 B
C
15 lines
525 B
C
#pragma once
|
|
|
|
BEGIN_DUKE_NS
|
|
|
|
extern int myx, omyx, myxvel, myy, omyy, myyvel, myz, omyz, myzvel;
|
|
extern short globalskillsound;
|
|
extern short mycursectnum, myjumpingcounter;
|
|
extern fixed_t q16myang, oq16myang, q16myhoriz, oq16myhoriz, q16myhorizoff, oq16myhorizoff;
|
|
extern char myjumpingtoggle, myonground, myhardlanding,myreturntocenter;
|
|
extern int fakemovefifoplc;
|
|
extern int myxbak[MOVEFIFOSIZ], myybak[MOVEFIFOSIZ], myzbak[MOVEFIFOSIZ];
|
|
extern int myhorizbak[MOVEFIFOSIZ];
|
|
extern short myangbak[MOVEFIFOSIZ];
|
|
|
|
END_DUKE_NS
|