Advertisement
Guest User

Untitled

a guest
May 26th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # HG changeset patch
  2. # User Machiavelli
  3. # Date 1274217978 -7200
  4. # Branch trunk
  5. # Node ID 54cf5ffe3b4c8c4c50e6d6c5191650378f8c45e9
  6. # Parent  4c98be86345ca24387dbdede4ffa057697c8cb76
  7. Really fix SCRIPT_COMMAND_ORIENTATION
  8.  
  9. diff -r 4c98be86345c -r 54cf5ffe3b4c src/game/Map.cpp
  10. --- a/src/game/Map.cpp  Tue May 18 22:59:13 2010 +0200
  11. +++ b/src/game/Map.cpp  Tue May 18 23:26:18 2010 +0200
  12. @@ -3714,12 +3714,14 @@
  13.                      break;
  14.                  }
  15.  
  16. +                Unit* uSource = (Unit*)source;
  17. +                Unit* uTarget = (Unit*)target;
  18.                  if (step.script->datalong)
  19. -                    source->ToCreature()->SetInFront((Unit*)source);
  20. +                    uSource->SetInFront(uTarget);
  21.                  else
  22. -                    source->ToCreature()->SetOrientation(step.script->o);
  23. -
  24. -                source->ToCreature()->SendMovementFlagUpdate();
  25. +                    uSource->SetOrientation(step.script->o);
  26. +
  27. +                uSource->SendMovementFlagUpdate();
  28.                  break;
  29.              }
  30.              case SCRIPT_COMMAND_EQUIP:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement