/[enigma]/enigma/src/player.cc
ViewVC logotype

Diff of /enigma/src/player.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by dheck, Thu Mar 13 18:07:39 2003 UTC revision 1.11 by dheck, Thu Apr 24 21:28:07 2003 UTC
# Line 201  Inventory::activate_first() Line 201  Inventory::activate_first()
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]));
# Line 405  player::Tick(double dtime) Line 405  player::Tick(double dtime)
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    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26