hi ho, const safety

This commit is contained in:
Glenn Maynard
2002-08-22 23:36:03 +00:00
parent 2564a200c8
commit a8dfdcbc9d
3 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -234,19 +234,19 @@ void InputMapper::GameToStyle( GameInput GameI, StyleInput &StyleI )
return;
}
StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
StyleI = pStyleDef->GameInputToStyleInput( GameI );
}
void InputMapper::GameToMenu( GameInput GameI, MenuInput &MenuI )
{
GameDef* pGameDef = GAMESTATE->GetCurrentGameDef();
const GameDef* pGameDef = GAMESTATE->GetCurrentGameDef();
MenuI = pGameDef->GameInputToMenuInput( GameI );
}
void InputMapper::StyleToGame( StyleInput StyleI, GameInput &GameI )
{
StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
GameI = pStyleDef->StyleInputToGameInput( StyleI );
}