mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-04-19 08:58:56 +00:00
Merge ca68aabbcc
into a18b9e6bad
This commit is contained in:
commit
2ddc95e3a2
2 changed files with 7 additions and 3 deletions
|
@ -540,6 +540,10 @@ void AssertFailed( const char *file, int line, const char *expression ) {
|
|||
#ifdef _MSC_VER
|
||||
__debugbreak();
|
||||
_exit(1);
|
||||
#elif defined(__clang__)
|
||||
// More appropriate than __builtin_trap, indeed it does trigger SIGILL
|
||||
// but SIGTRAP instead. only clang supports for now (so far).
|
||||
__builtin_debugtrap();
|
||||
#elif defined(__unix__)
|
||||
// __builtin_trap() causes an illegal instruction which is kinda ugly.
|
||||
// especially if you'd like to be able to continue after the assertion during debugging
|
||||
|
|
|
@ -1148,9 +1148,8 @@ idSlowChannel::Reset
|
|||
===================
|
||||
*/
|
||||
void idSlowChannel::Reset() {
|
||||
memset( this, 0, sizeof( *this ) );
|
||||
|
||||
this->chan = chan;
|
||||
active = false;
|
||||
chan = nullptr;
|
||||
|
||||
curPosition.Set( 0 );
|
||||
newPosition.Set( 0 );
|
||||
|
@ -1158,6 +1157,7 @@ void idSlowChannel::Reset() {
|
|||
curSampleOffset = -10000;
|
||||
newSampleOffset = -10000;
|
||||
|
||||
playbackState = 0;
|
||||
triggerOffset = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue