mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2025-01-31 21:10:47 +00:00
Fix several bugs from iodoom3 bugtracker
Apply 94cd0ee5 to d3xp as well.
This commit is contained in:
parent
a5f5270f8e
commit
ed1ffa8060
1 changed files with 5 additions and 4 deletions
|
@ -1387,8 +1387,8 @@ bool idGameLocal::InitFromSaveGame( const char *mapName, idRenderWorld *renderWo
|
||||||
|
|
||||||
if ( !InhibitEntitySpawn( mapEnt->epairs ) ) {
|
if ( !InhibitEntitySpawn( mapEnt->epairs ) ) {
|
||||||
CacheDictionaryMedia( &mapEnt->epairs );
|
CacheDictionaryMedia( &mapEnt->epairs );
|
||||||
const char *classname = mapEnt->epairs.GetString( "classname" );
|
const char *classname;
|
||||||
if ( classname != '\0' ) {
|
if ( mapEnt->epairs.GetString( "classname", "", &classname ) ) {
|
||||||
FindEntityDef( classname, false );
|
FindEntityDef( classname, false );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1799,8 +1799,9 @@ void idGameLocal::GetShakeSounds( const idDict *dict ) {
|
||||||
const char *soundShaderName;
|
const char *soundShaderName;
|
||||||
idStr soundName;
|
idStr soundName;
|
||||||
|
|
||||||
soundShaderName = dict->GetString( "s_shader" );
|
if ( dict->GetString( "s_shader", "", &soundShaderName )
|
||||||
if ( soundShaderName != '\0' && dict->GetFloat( "s_shakes" ) != 0.0f ) {
|
&& dict->GetFloat( "s_shakes" ) != 0.0f )
|
||||||
|
{
|
||||||
soundShader = declManager->FindSound( soundShaderName );
|
soundShader = declManager->FindSound( soundShaderName );
|
||||||
|
|
||||||
for ( int i = 0; i < soundShader->GetNumSounds(); i++ ) {
|
for ( int i = 0; i < soundShader->GetNumSounds(); i++ ) {
|
||||||
|
|
Loading…
Reference in a new issue