201 |
{ |
{ |
202 |
Item *it = items[0]; |
Item *it = items[0]; |
203 |
Actor *ac = players[icurrent_player].actors[0]; |
Actor *ac = players[icurrent_player].actors[0]; |
204 |
const world::ActorInfo &ai = world::GetActorInfo(ac); |
const world::ActorInfo &ai = *ac->get_actorinfo(); |
205 |
|
|
206 |
GridPos p(static_cast<int>(ai.pos[0]), |
GridPos p(static_cast<int>(ai.pos[0]), |
207 |
static_cast<int>(ai.pos[1])); |
static_cast<int>(ai.pos[1])); |
405 |
{ |
{ |
406 |
// Update position of active actor for stereo sound and screen position |
// Update position of active actor for stereo sound and screen position |
407 |
Actor *ac = players[icurrent_player].actors[0]; |
Actor *ac = players[icurrent_player].actors[0]; |
408 |
const world::ActorInfo &ai = world::GetActorInfo(ac); |
const world::ActorInfo &ai = *ac->get_actorinfo(); |
409 |
sound::SetListenerPosition (ai.pos); |
sound::SetListenerPosition (ai.pos); |
410 |
display::SetReferencePoint (ai.pos); |
display::SetReferencePoint (ai.pos); |
411 |
|
|