JACoders/OpenJK

[Bug]: Recent builds fail to compile on Linux

shsorbom opened this issue · 1 comments

Operating system and version:
Linux x86_64

Is this for single player or multiplayer?
N/A

Description of the bug (and if possible, steps to reproduce the bug):
Recent builds from May 16 master branch fail to compile on Linux. Error below:

In file included from /root/parts/openjk-bin/src/codeJK2/game/../../code/qcommon/q_shared.h:106:0,
                 from /root/parts/openjk-bin/src/codeJK2/game/bg_pmove.cpp:31:
/root/parts/openjk-bin/src/codeJK2/game/bg_pmove.cpp: In function ‘qboolean PM_SaberLocked()’:
/root/parts/openjk-bin/src/codeJK2/game/bg_pmove.cpp:6503:13: error: ‘ret’ was not declared in this scope
      assert(ret); // this would be pretty bad, the below code seems to assume the call succeeds. -gil
             ^
/root/parts/openjk-bin/src/codeJK2/game/bg_pmove.cpp:6503:13: note: suggested alternative: ‘gent’

What did you expect to happen instead?
Should have compiled

So, the #ifdef _debug statement appears to be one line off. The asert(ret); statement should be inside of the ifdef block, but it isn't