Jump to content

Need a little explanation of the code in Group.cpp

Guest fdb_

Recommended Posts


Is there someone that can explain me why in the last method of the file Group.cpp, player_tap is not processed in the main loop iteration but after the loop?

void Group::RewardGroupAtKill(Unit* pVictim, Player* player_tap)

Cheers guys.

Link to comment
Share on other sites

Look at the comment line above :

 * @param player_tap    Player who tap unit if online, it can be group member or can be not if leaved after tap but before kill target

The player_tap could possibly not be in the group. The loop covers only the group members, that's why player_tap is processed after :)

Link to comment
Share on other sites

  • 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