From 13cb522b404a97172255df898d7674fe6b16cedd Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Fri, 15 Jul 2005 08:21:06 +0000 Subject: Enabling support for joypads: - Only <=6 buttons are supported - Only the first jopad is used (if you have more than one) - Axes need to be tuned - You can only move and attack with joypad Small fix in the updating system --- src/gui/updatewindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/updatewindow.cpp') diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 73efc102..42a68afa 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -158,6 +158,10 @@ int updateProgress(void *ptr, { std::string labelString(currentFile); float progress = d/t; + if (d < 0) + { + d = 0.0f; + } std::stringstream progressString(""); progressString << ((int)(progress*100)); labelString += " (" + progressString.str() + "%)"; -- cgit v1.2.3-70-g09d2