Skip to content

Commit 8ddae25

Browse files
committed
Remove inline from multiplayer()
We should force this to be inlined some other way.
1 parent c27e470 commit 8ddae25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/src/client.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ extern int searchlan;
1414
int getclientnum() { return player1 ? player1->clientnum : -1; }
1515
bool isowned(playerent *p) { return player1 && p && p->ownernum >= 0 && p->ownernum == player1->clientnum; }
1616

17-
inline bool multiplayer(bool msg)
17+
// is there any way to force the compiler to inline this function?
18+
bool multiplayer(bool msg)
1819
{
1920
// check not correct on listen server?
2021
if(curpeer && msg) conoutf(_("operation not available in multiplayer"));

0 commit comments

Comments
 (0)