diff options
| author | Kris Parker | 2009-11-22 16:59:59 +0000 |
|---|---|---|
| committer | Kris Parker | 2009-11-22 16:59:59 +0000 |
| commit | 45553a656b643bf76056eefbd8dfdc8222ed9d9d (patch) | |
| tree | 978ebc39519e565138320d0273f52ca14de8827a /UserInput.cpp | |
| parent | affea49b60d097d1fa8b0d7856e8784286eb1a6d (diff) | |
| download | stonesense-45553a656b643bf76056eefbd8dfdc8222ed9d9d.tar.gz stonesense-45553a656b643bf76056eefbd8dfdc8222ed9d9d.tar.bz2 stonesense-45553a656b643bf76056eefbd8dfdc8222ed9d9d.tar.xz | |
stop autoreloading if we find ourselves mapless, to reduce the issues with bad memory data
Diffstat (limited to 'UserInput.cpp')
| -rw-r--r-- | UserInput.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/UserInput.cpp b/UserInput.cpp index 021d7f9..14a5df6 100644 --- a/UserInput.cpp +++ b/UserInput.cpp @@ -24,6 +24,12 @@ void initAutoReload() install_int( automaticReloadProc, config.automatic_reload_time );
}
+void abortAutoReload()
+{
+ config.automatic_reload_time = 0;
+ remove_int( automaticReloadProc );
+}
+
void changeRelativeToRotation( int &inputx, int &inputy, int stepx, int stepy ){
switch(DisplayedRotation){
case 0:
|
