From: Marc C. <mar...@gm...> - 2014-03-29 20:43:10
|
Today I realized that the new grand prix editor offers a way for the user to bypass the lock/unlock mechanism on tracks. If a track is still locked, the user only needs to create a grand prix containing that track and he can play it as if it was unlocked. I guess there was no need to check this before because all the tracks got unlocked before the corresponding GP. But now that the users can create their own, the game should verify this sort of things. So I modified the GrandPrixData class in a way that lets the programmer decide if he wants all of the tracks of the grand prix, or just the unlocked ones. That way the user can still edit his own grand prix with locked tracks if he likes, but won't be able to play in those tracks unless he has actually unlocked them. I'm almost finished with the changes, but I have a doubt about the GrandPrixData::isTrackAvailable() function. Apparently, it's there to handle some sort of special case with the FortMagma track, but I'm not sure why. I suspect that my modifications will make this special case go away, since now we will have to check every track. But just in case, can anyone explain this to me, so that I don't mess things up? Marc Coll |