[Scummvm-git-logs] scummvm master -> eaa70c0c32d41581d6a4ed607db8450d7280530d

digitall noreply at scummvm.org
Sat Mar 19 15:11:21 UTC 2022


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:
eaa70c0c32 ULTIMA8: Fix Undefined Macro Compiler Warnings


Commit: eaa70c0c32d41581d6a4ed607db8450d7280530d
    https://github.com/scummvm/scummvm/commit/eaa70c0c32d41581d6a4ed607db8450d7280530d
Author: D G Turner (digitall at scummvm.org)
Date: 2022-03-19T15:10:46Z

Commit Message:
ULTIMA8: Fix Undefined Macro Compiler Warnings

These are emitted by GCC when -Wundef is passed.

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


diff --git a/engines/ultima/ultima8/world/current_map.cpp b/engines/ultima/ultima8/world/current_map.cpp
index 54053cbe0f4..82fe1f38b26 100644
--- a/engines/ultima/ultima8/world/current_map.cpp
+++ b/engines/ultima/ultima8/world/current_map.cpp
@@ -533,7 +533,7 @@ void CurrentMap::unsetChunkFast(int32 cx, int32 cy) {
 	while (iter != _items[cx][cy].end()) {
 		Item *item = *iter;
 		++iter;
-#if VALIDATE_CHUNKS
+#ifdef VALIDATE_CHUNKS
 		int32 x, y, z;
 		item->getLocation(x, y, z);
 		if (x / _mapChunkSize != cx || y / _mapChunkSize != cy) {




More information about the Scummvm-git-logs mailing list