[Scummvm-cvs-logs] scummvm master -> a7d18763ac56bd3cb322f790746908390f6c73e5

sev- sev at scummvm.org
Sat Jun 11 11:43:28 CEST 2016


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

Summary:
455d433afd TOLTECS: Initialize objects
50868e9e10 TOLTECS: Initialize Menu class
a7d18763ac TOLTECS: Initialized Animation class


Commit: 455d433afd2ab8018a8ceca42fb91e9a517fcea3
    https://github.com/scummvm/scummvm/commit/455d433afd2ab8018a8ceca42fb91e9a517fcea3
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-06-10T14:12:27+02:00

Commit Message:
TOLTECS: Initialize objects

Changed paths:
    engines/toltecs/segmap.cpp
    engines/toltecs/segmap.h



diff --git a/engines/toltecs/segmap.cpp b/engines/toltecs/segmap.cpp
index b27e0c8..399a044 100644
--- a/engines/toltecs/segmap.cpp
+++ b/engines/toltecs/segmap.cpp
@@ -27,6 +27,10 @@
 namespace Toltecs {
 
 SegmentMap::SegmentMap(ToltecsEngine *vm) : _vm(vm) {
+	_maskRectData = NULL;
+	memset(_deadEndPathRects, 0, sizeof(_closedPathRects));
+	_closedPathRectsCount = 0;
+	_pathNodesCount = 0;
 }
 
 SegmentMap::~SegmentMap() {
diff --git a/engines/toltecs/segmap.h b/engines/toltecs/segmap.h
index c1ad293..03bd858 100644
--- a/engines/toltecs/segmap.h
+++ b/engines/toltecs/segmap.h
@@ -80,6 +80,8 @@ public: // for debugging purposes
 
 	struct PathPoint {
 		int16 y, x;
+
+		PathPoint() : x(0), y(0) {}
 	};
 
 	typedef Common::Array<SegmapMaskRect> SegmapMaskRectArray;


Commit: 50868e9e1003e47698247fc9afb5fec514a20b21
    https://github.com/scummvm/scummvm/commit/50868e9e1003e47698247fc9afb5fec514a20b21
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-06-10T14:17:04+02:00

Commit Message:
TOLTECS: Initialize Menu class

Changed paths:
    engines/toltecs/menu.cpp



diff --git a/engines/toltecs/menu.cpp b/engines/toltecs/menu.cpp
index a587714..5fc0599 100644
--- a/engines/toltecs/menu.cpp
+++ b/engines/toltecs/menu.cpp
@@ -37,6 +37,16 @@
 namespace Toltecs {
 
 MenuSystem::MenuSystem(ToltecsEngine *vm) : _vm(vm) {
+	_background = nullptr;
+	_running = false;
+	_currMenuID = _newMenuID = kMenuIdNone;
+	_currItemID = kItemIdNone;
+	_top = 0;
+	_savegameListTopIndex = 0;
+	_editingDescription = false;
+	_editingDescriptionID = kItemIdNone;
+	_editingDescriptionItem = nullptr;
+	_needRedraw = false;
 }
 
 MenuSystem::~MenuSystem() {


Commit: a7d18763ac56bd3cb322f790746908390f6c73e5
    https://github.com/scummvm/scummvm/commit/a7d18763ac56bd3cb322f790746908390f6c73e5
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-06-10T14:21:17+02:00

Commit Message:
TOLTECS: Initialized Animation class

Changed paths:
    engines/toltecs/animation.cpp



diff --git a/engines/toltecs/animation.cpp b/engines/toltecs/animation.cpp
index 1f776bb..5278b25 100644
--- a/engines/toltecs/animation.cpp
+++ b/engines/toltecs/animation.cpp
@@ -29,6 +29,18 @@ namespace Toltecs {
 
 AnimationPlayer::AnimationPlayer(ToltecsEngine *vm) : _vm(vm) {
 	_animBuffer = new byte[262144];
+	memset(_animBuffer, 0, 262144);
+
+	_resIndex = 0;
+	_width = _height = 0;
+	_frameNumber = 0;
+	_frameCount = 0;
+	_keepFrameCounter = 0;
+	_curFrameSize = _nextFrameSize = 0;
+	_nextFrameOffset = 0;
+	_firstNextFrameSize = 0;
+	_firstNextFrameOffset = 0;
+	_firstCurFrameSize = 0;
 }
 
 AnimationPlayer::~AnimationPlayer() {






More information about the Scummvm-git-logs mailing list