Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 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,628
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 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: 112
Given 48 thank(s) in 37 post(s)
Is the policy mentioned in our global contributing policy?
Posts: 783
Threads: 12
Joined: Jan 2014
Thanks: 2
Given 73 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,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 post(s)
Usually we use an out (reference) parameter for the value and return the success indicator.