ValveSoftware / source-sdk-2013

The 2013 edition of the Source SDK
https://developer.valvesoftware.com/wiki/SDK2013_GettingStarted
Other
3.69k stars 1.99k forks source link

env_explosion sparks only appear underwater (opposite intended) #482

Open Pinsplash opened 4 years ago

Pinsplash commented 4 years ago

In the 2013 SDK, line 354 clearly states:

// Only do these effects if we're not submerged

Followed by the line if ( UTIL_PointContents( GetAbsOrigin() ) & CONTENTS_WATER ) which checks if the entity is in water, instead of out. I don't think I need to say how to fix it.