From: <wel...@us...> - 2008-11-01 09:47:35
|
Revision: 2326 http://planeshift.svn.sourceforge.net/planeshift/?rev=2326&view=rev Author: weltall2 Date: 2008-11-01 09:47:32 +0000 (Sat, 01 Nov 2008) Log Message: ----------- moved the flash disable as it could have not been triggered like it did in onmousedown Modified Paths: -------------- trunk/src/common/paws/pawsbutton.cpp Modified: trunk/src/common/paws/pawsbutton.cpp =================================================================== --- trunk/src/common/paws/pawsbutton.cpp 2008-11-01 09:39:09 UTC (rev 2325) +++ trunk/src/common/paws/pawsbutton.cpp 2008-11-01 09:47:32 UTC (rev 2326) @@ -404,7 +404,11 @@ void pawsButton::SetState(bool isDown, bool publish) { - down = isDown; + down = isDown; + + if ( flash && down ) + flash = 0; + if (!toggle) return; @@ -416,9 +420,6 @@ if (!publish) return; - if ( flash && down ) - flash = 0; - for (size_t a=0; a<publishList.GetSize(); ++a) PawsManager::GetSingleton().Publish(publishList[a], isDown); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |