Merge branch 'master' into script_dev

This commit is contained in:
Nikolay Korolev
2020-03-02 22:54:47 +03:00
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)