Fundynamic / RealBot

Counter-Strike 1.6 - AI Opponent
http://realbot.bots-united.com
53 stars 19 forks source link

macOS support #8

Closed weimzh closed 6 years ago

weimzh commented 6 years ago

Updated Makefile and some part of code to support macOS (which steam now officially supports).

For macOS, use patched metamod version by alledmodders: https://github.com/Bots-United/metamod-hl1 https://github.com/Bots-United/hlsdk (build the above metamod with this version of hlsdk)

I did not update the included hlsdk and metamod 1.19 in the source tree, just added a '-Dlinux=1' in Makefile for compiling purpose.

stefanhendriks commented 6 years ago

I noticed it did not compile on my machine, because min was not a function fmin is. Seems like some backwards compatibility issue if not explicitly pointing to <algorithm>. I tried that and it compiled.

I'll have to try to compile the metamod-hl1 and hlsdk myself then, would be nice to have them on this repo as well to keep it 'complete'.