Raptor007 / aq2-tng

Action Quake 2: The Next Generation. Raptor007's sandbox for testing changes. When verified stable, this code is pushed to the official aq2-tng repo:
https://github.com/aq2-tng/aq2-tng/tree/bots
4 stars 2 forks source link

Set gamedir to static value 'action' #115

Closed darkshade9 closed 2 years ago

darkshade9 commented 2 years ago

This should resolve https://github.com/Raptor007/aq2-tng/issues/114

If you start a game without specifying +set game action then the cvar is empty, and the path to save the terrain file is silently broken.

I set it to a static value as I don't think we'll ever not be action

Raptor007 commented 2 years ago

Interesting. I guess I've never started a server without +set game action. However I don't like this fix, as it would prevent someone from running a weird version in their own gamedir if they wanted to. Instead, it should just default to action:

game_dir = gi.cvar ("game", "action", 0);

Raptor007 commented 2 years ago

This is the way I would prefer to fix this, if it works: https://github.com/Raptor007/aq2-tng/commit/0e063ac73328f4c4e275970a23efe46d51e47d17