[Scummvm-git-logs] scummvm master -> 4f38e2b7dd943402e63f6ed719e18ae79250260b

mduggan noreply at scummvm.org
Wed Feb 22 23:34:17 UTC 2023


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

Summary:
5b323d505d TETRAEDGE: Fix model vertex order for inverted normal case
4f38e2b7dd TETRAEDGE: Follow original of playing background immediately in Syberia 2


Commit: 5b323d505d2b49d54c743efeb194dd880d9bc97f
    https://github.com/scummvm/scummvm/commit/5b323d505d2b49d54c743efeb194dd880d9bc97f
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2023-02-23T08:33:45+09:00

Commit Message:
TETRAEDGE: Fix model vertex order for inverted normal case

Changed paths:
    engines/tetraedge/te/te_model.cpp


diff --git a/engines/tetraedge/te/te_model.cpp b/engines/tetraedge/te/te_model.cpp
index 6b12919a2a5..32027812895 100644
--- a/engines/tetraedge/te/te_model.cpp
+++ b/engines/tetraedge/te/te_model.cpp
@@ -140,10 +140,11 @@ TeTRS TeModel::getBone(TeIntrusivePtr<TeModelAnimation> anim, uint num) {
 void TeModel::invertNormals() {
 	for (auto mesh : meshes()) {
 		for (uint i = 0; i < mesh->numIndexes() / 3; i++) {
+			// Swap order of verticies in each triangle.
 			uint idx0 = mesh->index(i);
 			uint idx2 = mesh->index(i + 2);
 			mesh->setIndex(i, idx2);
-			mesh->setIndex(i, idx0);
+			mesh->setIndex(i + 2, idx0);
 		}
 		for (uint i = 0; i < mesh->numVerticies(); i++) {
 			mesh->setNormal(i, -mesh->normal(i));


Commit: 4f38e2b7dd943402e63f6ed719e18ae79250260b
    https://github.com/scummvm/scummvm/commit/4f38e2b7dd943402e63f6ed719e18ae79250260b
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2023-02-23T08:33:45+09:00

Commit Message:
TETRAEDGE: Follow original of playing background immediately in Syberia 2

Changed paths:
    engines/tetraedge/game/in_game_scene.cpp


diff --git a/engines/tetraedge/game/in_game_scene.cpp b/engines/tetraedge/game/in_game_scene.cpp
index bd97ab29e55..075e2ed4a90 100644
--- a/engines/tetraedge/game/in_game_scene.cpp
+++ b/engines/tetraedge/game/in_game_scene.cpp
@@ -192,6 +192,8 @@ bool InGameScene::changeBackground(const Common::String &name) {
 	Common::FSNode node = g_engine->getCore()->findFile(name);
 	if (node.isReadable()) {
 		_bgGui.spriteLayoutChecked("root")->load(node);
+		if (g_engine->gameType() == TetraedgeEngine::kSyberia2)
+			_bgGui.spriteLayoutChecked("root")->play();
 		return true;
 	}
 	return false;




More information about the Scummvm-git-logs mailing list