[Scummvm-git-logs] scummvm master -> 3b32d09ce4c52d6dd0b623e3fd7fe9831bb9c711

sev- noreply at scummvm.org
Fri Aug 23 14:11:32 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
3b32d09ce4 QDENGINE: Fixed more indentation nonsense introduced by a pythonist


Commit: 3b32d09ce4c52d6dd0b623e3fd7fe9831bb9c711
    https://github.com/scummvm/scummvm/commit/3b32d09ce4c52d6dd0b623e3fd7fe9831bb9c711
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-08-23T16:10:46+02:00

Commit Message:
QDENGINE: Fixed more indentation nonsense introduced by a pythonist

Changed paths:
    engines/qdengine/qdcore/qd_sprite.cpp


diff --git a/engines/qdengine/qdcore/qd_sprite.cpp b/engines/qdengine/qdcore/qd_sprite.cpp
index a98c4b5aac1..68ebbc96d32 100644
--- a/engines/qdengine/qdcore/qd_sprite.cpp
+++ b/engines/qdengine/qdcore/qd_sprite.cpp
@@ -1013,20 +1013,22 @@ void qdSprite::qda_load(Common::SeekableReadStream *fh, int version) {
 			switch (_format) {
 			case GR_RGB565:
 			case GR_ARGB1555:
-				if (!al_flag)
+				if (!al_flag) {
 					_data = new byte[_picture_size.x * _picture_size.y * 2];
-				else
+				} else {
 					warning("qdSprite::qda_load(): al_flag is set, check the sprite picture"); // TODO)
 					_data = new byte[_picture_size.x * _picture_size.y * 4];
+				}
 
 				fh->read(_data, _picture_size.x * _picture_size.y * 2);
 				break;
 			case GR_RGB888:
-				if (!al_flag)
+				if (!al_flag) {
 					_data = new byte[_picture_size.x * _picture_size.y * 3];
-				else
+				} else {
 					warning("qdSprite::qda_load(): al_flag is set, check the sprite picture"); // TODO
 					_data = new byte[_picture_size.x * _picture_size.y * 4];
+				}
 
 				fh->read(_data, _picture_size.x * _picture_size.y * 3);
 				break;




More information about the Scummvm-git-logs mailing list