Update of /cvsroot/csp/APPLICATIONS/CSPSim/Source
In directory sc8-pr-cvs1:/tmp/cvs-serv9943/Source
Modified Files:
Tag: systems
GameScreen.cpp
Log Message:
Index: GameScreen.cpp
===================================================================
RCS file: /cvsroot/csp/APPLICATIONS/CSPSim/Source/GameScreen.cpp,v
retrieving revision 1.27
retrieving revision 1.27.2.1
diff -C2 -d -r1.27 -r1.27.2.1
*** GameScreen.cpp 16 Aug 2003 10:23:27 -0000 1.27
--- GameScreen.cpp 11 Oct 2003 17:43:33 -0000 1.27.2.1
***************
*** 113,119 ****
BIND_ACTION("RESET_SPIN", on_ResetSpin);
BIND_MOTION("CAMERA_PAN", on_MouseView);
! EventMapIndex *maps = CSPSim::theSim->getInterfaceMaps();
! if (maps) {
! EventMapping *map = maps->getMap("__gamescreen__");
if (map != NULL) {
m_Interface->setMapping(map);
--- 113,119 ----
BIND_ACTION("RESET_SPIN", on_ResetSpin);
BIND_MOTION("CAMERA_PAN", on_MouseView);
! simdata::Ref<EventMapIndex> maps = CSPSim::theSim->getInterfaceMaps();
! if (maps.valid()) {
! EventMapping::Ref map = maps->getMap("__gamescreen__");
if (map != NULL) {
m_Interface->setMapping(map);
***************
*** 185,189 ****
GameScreen::~GameScreen() {
- if (m_Interface) delete m_Interface;
}
--- 185,188 ----
|