mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-03 08:07:58 +03:00
Fix actor mVoiceType initialization.
This commit is contained in:
parent
71be2f3dda
commit
d6d29a7a0b
5 changed files with 119 additions and 54 deletions
|
@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#include "player.h"
|
||||
#include "object.h"
|
||||
#include <g_spawn.h>
|
||||
|
||||
extern Event EV_Entity_Start;
|
||||
//====================
|
||||
//Player::ActorInfo
|
||||
//====================
|
||||
|
@ -424,6 +424,9 @@ void Player::SpawnEntity
|
|||
e = new Event( EV_SetAnim );
|
||||
e->AddString( "idle" );
|
||||
ent->PostEvent( e, EV_SPAWNARG );
|
||||
|
||||
ent->ProcessPendingEvents();
|
||||
ent->ProcessEvent(EV_Entity_Start);
|
||||
}
|
||||
|
||||
//====================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue