[TuxKart-devel] Input/simulation seperation
Status: Alpha
Brought to you by:
sjbaker
From: <jam...@bt...> - 2004-08-14 17:26:55
|
> Log Message: > - moved PlayerKartDriver out of the Driver-hierachy, to seperate input > from the actual simulation, will do the same with AutoDriver stuff The input stuff already is seperate from the simulation, its in sdldrv.cxx in a function called kartInput(). The one exception is the cheat code for infinite ammo. I left this in player kart driver because that's where it was originally and I decided to leave it where it was in case this had been done for a good reason that had passed me by. Index: RaceGUI.cxx =================================================================== ((PlayerKartDriver*)World::current()->kart[0])->incomingKeystroke ( key ) ; + // FIXME: '0' alone can't be correct, can it? + PlayerDriver* driver = World::current()->kart [ 0 ]->getDriver(); As it only affects the infinite ammo cheat it doesn't really matter. I would have thought the easiest solution would be to move the infinite ammo cheat into the kartInput() function, or maybe take it out altogether, rather than removing the driver hierarchy. James |