mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-03-20 14:20:02 +01:00
update Simulation.cpp to use new macros
This commit is contained in:
parent
da45e0e469
commit
20e1abd840
@ -52,13 +52,13 @@
|
||||
|
||||
// Change this to change the amount of bits used to store type in pmap (and a few elements such as PIPE and CRAY)
|
||||
#define PMAPBITS 8
|
||||
#define PMAPMASK ((2<<(PMAPBITS-1))-1)
|
||||
#define PMAPMASK ((1<<PMAPBITS)-1)
|
||||
#define ID(r) ((r)>>PMAPBITS)
|
||||
#define TYP(r) ((r)&PMAPMASK)
|
||||
#define PMAP(id, typ) ((id)<<PMAPBITS | ((typ)&PMAPMASK))
|
||||
#define PMAPID(id) ((id)<<PMAPBITS)
|
||||
|
||||
#define PT_NUM 256
|
||||
#define PT_NUM (1<<PMAPBITS)
|
||||
|
||||
struct playerst;
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user