Posts: 6,486
Threads: 176
Joined: Jan 2012
Thanks: 40
Given 157 thank(s) in 838 post(s)
I'd venture a guess that SendChat() could be used at times when the player has no world assigned to them (during initial login, or nether portal transport perhaps?) so it tries to determine the last available world really hard.
Posts: 4,621
Threads: 113
Joined: Dec 2011
Thanks: 51
Given 58 thank(s) in 410 post(s)
Oh, wow that's quite allot. Since when do we have the "rebase before merge" policy?
Posts: 681
Threads: 26
Joined: May 2014
Thanks: 0
Given 8 thank(s) in 37 post(s)
Is the policy mentioned in our global contributing policy?
Posts: 783
Threads: 12
Joined: Jan 2014
Thanks: 0
Given 4 thank(s) in 61 post(s)
Whats the convention for returning a value and an error code from a function? I've got a function that needs to return whether it succeed, and if it succeeded, what the result was. Should I return a pair, or use a reference parameter to return the value?
Posts: 6,486
Threads: 176
Joined: Jan 2012
Thanks: 40
Given 157 thank(s) in 838 post(s)
Usually we use an out (reference) parameter for the value and return the success indicator.