[Scummvm-git-logs] scummvm master -> 960428dc0efdf99672250f238169adc9e9c60e63

mduggan mgithub at guarana.org
Wed Jun 23 23:59:16 UTC 2021


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:
960428dc0e ULTIMA8: Reset world attributes on new game


Commit: 960428dc0efdf99672250f238169adc9e9c60e63
    https://github.com/scummvm/scummvm/commit/960428dc0efdf99672250f238169adc9e9c60e63
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2021-06-24T08:59:01+09:00

Commit Message:
ULTIMA8: Reset world attributes on new game

Changed paths:
    engines/ultima/ultima8/world/world.cpp


diff --git a/engines/ultima/ultima8/world/world.cpp b/engines/ultima/ultima8/world/world.cpp
index 142325f845..48bfd9f710 100644
--- a/engines/ultima/ultima8/world/world.cpp
+++ b/engines/ultima/ultima8/world/world.cpp
@@ -77,6 +77,10 @@ void World::clear() {
 	if (_currentMap)
 		delete _currentMap;
 	_currentMap = nullptr;
+
+	_alertActive = false;
+	_controlledNPCNum = 1;
+	_vargasShield = 5000;
 }
 
 void World::reset() {




More information about the Scummvm-git-logs mailing list