mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 07:17:44 +00:00
committing the current status of dacian's new network code on matei's request
also includes sound support. GameSetup: ensure all ScriptingInit are called; moved simulation ScriptingInits and init/shutdown to SimulationScriptInit.cpp (reduces #includes) This was SVN commit r6028.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "LOSManager.h"
|
||||
#include "graphics/Terrain.h"
|
||||
#include "Stance.h"
|
||||
#include "sound/SoundGroupMgr.h"
|
||||
|
||||
#include "ps/Game.h"
|
||||
#include "ps/World.h"
|
||||
@@ -437,8 +438,8 @@ bool CEntity::ProcessContactActionNoPathing( CEntityOrder* current, int timestep
|
||||
|
||||
if( ( m_fsm_cyclepos <= action->m_Speed ) && ( nextpos > action->m_Speed ) )
|
||||
{
|
||||
// TODO: Play a sound here. Use m_base->m_SoundGroupTable[animation] to get the
|
||||
// name of the soundgroup XML file to play.
|
||||
const size_t soundGroupIndex = m_base->m_SoundGroupTable[animation];
|
||||
g_soundGroupMgr->PlayNext(soundGroupIndex);
|
||||
|
||||
if(!DispatchEvent( contactEvent ))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user