mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-16 09:02:06 +00:00
Cleanup initfreeslots()
This commit is contained in:
parent
178d29cf0c
commit
b3844a9ca5
1 changed files with 4 additions and 4 deletions
|
@ -26,10 +26,10 @@ extern char *FREE_SKINCOLORS[NUMCOLORFREESLOTS];
|
|||
extern UINT8 used_spr[(NUMSPRITEFREESLOTS / 8) + 1]; // Bitwise flag for sprite freeslot in use! I would use ceil() here if I could, but it only saves 1 byte of memory anyway.
|
||||
|
||||
#define initfreeslots() {\
|
||||
memset(FREE_STATES,0,sizeof(char *) * NUMSTATEFREESLOTS);\
|
||||
memset(FREE_MOBJS,0,sizeof(char *) * NUMMOBJFREESLOTS);\
|
||||
memset(FREE_SKINCOLORS,0,sizeof(char *) * NUMCOLORFREESLOTS);\
|
||||
memset(used_spr,0,sizeof(UINT8) * ((NUMSPRITEFREESLOTS / 8) + 1));\
|
||||
memset(FREE_STATES, 0, sizeof(FREE_STATES));\
|
||||
memset(FREE_MOBJS, 0, sizeof(FREE_MOBJS));\
|
||||
memset(FREE_SKINCOLORS, 0, sizeof(FREE_SKINCOLORS));\
|
||||
memset(used_spr, 0, sizeof(used_spr));\
|
||||
memset(actionsoverridden, LUA_REFNIL, sizeof(actionsoverridden));\
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue