View Single Post
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 01-11-2009 , 17:53   Re: CVAR 'mapcyclefile' always returns 'mapcycle.txt'
Reply With Quote #4

Kind of off topic, and I'm still looking, but how old is this file? Are you working from AMXX 1.8.1? I notice these are all cvars, not pcvars.

Gosh, it's from the latest version? They should look into changing that.

But from what little I understood by looking at the code...

Part of the problem may be that your svenfix is appended on to the end of what's already there. It already performs readMapCycle before it gets to your if statement, where it reads it yet again, changing the g_pos twice. Also sets the lastmapcycle twice. I don't think the cvar is being read incorrectly, because when you turn of the fix it works as it should, and your fix doesn't read in the cvar again.

I can't look at it anymore today, sorry. Maybe in two days I can try again.
__________________

Last edited by Bad_Bud; 01-11-2009 at 18:55.
Bad_Bud is offline