mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
LAB: Simplify code in perFlipButton
This commit is contained in:
parent
0ca10a7d40
commit
583f86be27
@ -159,9 +159,7 @@ void LabEngine::perFlipButton(uint16 buttonId) {
|
||||
for (ButtonList::iterator button = _moveButtonList.begin(); button != _moveButtonList.end(); ++button) {
|
||||
Button *topButton = *button;
|
||||
if (topButton->_buttonId == buttonId) {
|
||||
Image *tmpImage = topButton->_image;
|
||||
topButton->_image = topButton->_altImage;
|
||||
topButton->_altImage = tmpImage;
|
||||
SWAP<Image *>(topButton->_image, topButton->_altImage);
|
||||
|
||||
if (!_alternate)
|
||||
topButton->_image->drawImage(topButton->_x, topButton->_y);
|
||||
|
Loading…
Reference in New Issue
Block a user