OpenArena Message Boards

OpenArena Contributions => Development => Topic started by: beast on August 13, 2007, 09:34:13 PM



Title: GT_LMS in the gametype_t enum in bg_public.h
Post by: beast on August 13, 2007, 09:34:13 PM
I apologize for bringing this up late in the development process, but, as everyone knows, I am new here.

I have been going through the code trying to come up to speed so that I can help wherever my services might be needed. As I was going through and familiarizing myself with the code, I noticed a lot of stuff in there to get GT_LMS to work. It appears that a lot of trouble was being had because GT_LMS was added towards the end of the gametype enum. Specifically, it appears to be causing issues because it is not a team/ctf game and is after GT_TEAM. It seems that there would be much fewer items to change in the code if GT_LMS was simply inserted into the gametype_t enum before GT_TEAM. For example:

typedef enum {
  GT_FFA,
  GT_TOURNAMENT,
  GT_SINGLE_PLAYER,
  GT_LMS,
  GT_TEAM,
  GT_CTF,
....

I apologize ahead of time if I have misinterpreted something in the code that would make this incorrect.... And also that I did not bring it up until quite a bit of work has gone into the GT_LMS code...

Thanks...


Title: Re: GT_LMS in the gametype_t enum in bg_public.h
Post by: dmn_clown on August 13, 2007, 09:54:58 PM
IIRC that breaks gt_1fctf.


Title: Re: GT_LMS in the gametype_t enum in bg_public.h
Post by: beast on August 13, 2007, 09:59:56 PM
Never mind... It would probably mess up third party server status query tools that seem to like the standard gametypes to be in their regular places. Since OA has its own master server, it may not be a big deal, but still....

Never Mind... I R Noob...  :-)


Title: Re: GT_LMS in the gametype_t enum in bg_public.h
Post by: sago007 on August 14, 2007, 06:07:42 AM
It was discussed on the first place of "New mod: Elimination (BetaX)".

I have placed two variables that makes it easy making gametypes with high version number be FFA gametypes in 'game' and 'cgame'.

The UI on the other hand is annoying because it uses so many different ways to compare the gametype.