Fixes and cleanup

This commit is contained in:
eray orçunus
2020-03-02 03:03:39 +03:00
parent f72453d03e
commit a718e699ad
11 changed files with 122 additions and 92 deletions

View File

@ -22,6 +22,11 @@ enum {
LIGHT_BRIDGE_FLASH2,
};
enum {
ATTRACTORFLAG_ICECREAM,
ATTRACTORFLAG_STARE
};
enum {
LIGHTFLAG_LOSCHECK = 1,
// same order as CPointLights flags, must start at 2
@ -68,7 +73,7 @@ public:
C2dEffect(void) {}
void Shutdown(void){
if(type == 0){ // TODO: enum
if(type == EFFECT_LIGHT){
if(light.corona)
RwTextureDestroy(light.corona);
if(light.shadow)