Jump to content

[question] Missing An Enum : Mounted Speed Increase


Recommended Posts

i was looking somewhere to find where speed increasement are handled to fix crusader aura ( http://getmangos.eu/community/viewtopic.php?id=23821 ) with flying mount, and i found this in unit.cpp line 8280:

switch(mtype)
                               {
                                               case MOVE_WALK:
                                                               data.Initialize(MSG_MOVE_SET_WALK_SPEED, 8+4+1+4+4+4+4+4+4+4);
                                                               break;
                                               case MOVE_MOUNTED:
                                               case MOVE_RUN:
                                                               data.Initialize(MSG_MOVE_SET_RUN_SPEED, 8+4+1+4+4+4+4+4+4+4);
                                                               break;
                                               case MOVE_WALKBACK:
                                                               data.Initialize(MSG_MOVE_SET_RUN_BACK_SPEED, 8+4+1+4+4+4+4+4+4+4);
                                                               break;
                                               case MOVE_SWIM:
                                                               data.Initialize(MSG_MOVE_SET_SWIM_SPEED, 8+4+1+4+4+4+4+4+4+4);
                                                               break;
                                               case MOVE_SWIMBACK:
                                                               data.Initialize(MSG_MOVE_SET_SWIM_BACK_SPEED, 8+4+1+4+4+4+4+4+4+4);
                                                               break;
                                               case MOVE_TURN:
                                                               data.Initialize(MSG_MOVE_SET_TURN_RATE, 8+4+1+4+4+4+4+4+4+4);
                                                               break;
                                               case MOVE_FLY:
                                                               data.Initialize(MSG_MOVE_SET_FLY_SPEED, 8+4+1+4+4+4+4+4+4+4);
                                                               break;
                                               case MOVE_FLYBACK:
                                                               data.Initialize(MSG_MOVE_SET_FLY_BACK_SPEED, 8+4+1+4+4+4+4+4+4+4);
                                                               break;
                                               default:
                                                               sLog.outError("Unit::SetSpeed: Unsupported move type (%d), data not sent to client.",mtype);
                                                               return;
                               }

i saw that we're missing case MOVE_MOUNTED and so i searched in opcodes.h line 236 and we can see that we're missing a MSG_MOVE_SET_ something with mount. why?

Link to comment
Share on other sites

  • 38 years later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use