about summary refs log tree commit diff
path: root/src/engine/client/input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/client/input.cpp')
-rw-r--r--src/engine/client/input.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/client/input.cpp b/src/engine/client/input.cpp
index 3bb04448..5cd58342 100644
--- a/src/engine/client/input.cpp
+++ b/src/engine/client/input.cpp
@@ -108,7 +108,7 @@ int CInput::KeyState(int Key)
 	return m_aInputState[m_InputCurrent][Key];
 }
 
-void CInput::Update()
+int CInput::Update()
 {
 	if(m_InputGrabbed && !Graphics()->WindowActive())
 		MouseModeAbsolute();
@@ -185,9 +185,7 @@ void CInput::Update()
 
 				// other messages
 				case SDL_QUIT:
-					// TODO: cleaner exit
-					exit(0); // ignore_convention
-					break;
+					return 1;
 			}
 
 			//
@@ -201,6 +199,8 @@ void CInput::Update()
 
 		}
 	}
+
+	return 0;
 }