[Scummvm-git-logs] scummvm master -> ec4d789418dd2e87c6425bb8fb0510a718d279df
aquadran
noreply at scummvm.org
Wed Jul 23 04:27:57 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
ec4d789418 WINTERMUTE: Small cleanup on ad_path3d
Commit: ec4d789418dd2e87c6425bb8fb0510a718d279df
https://github.com/scummvm/scummvm/commit/ec4d789418dd2e87c6425bb8fb0510a718d279df
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2025-07-23T06:27:52+02:00
Commit Message:
WINTERMUTE: Small cleanup on ad_path3d
Changed paths:
engines/wintermute/ad/ad_path3d.cpp
diff --git a/engines/wintermute/ad/ad_path3d.cpp b/engines/wintermute/ad/ad_path3d.cpp
index fde893b1246..939e212e7a0 100644
--- a/engines/wintermute/ad/ad_path3d.cpp
+++ b/engines/wintermute/ad/ad_path3d.cpp
@@ -45,7 +45,7 @@ AdPath3D::~AdPath3D() {
//////////////////////////////////////////////////////////////////////////
void AdPath3D::reset() {
- for (uint i = 0; i < _points.getSize(); i++) {
+ for (uint32 i = 0; i < _points.getSize(); i++) {
delete _points[i];
}
@@ -85,7 +85,7 @@ DXVector3 *AdPath3D::getFirst() {
//////////////////////////////////////////////////////////////////////////
DXVector3 *AdPath3D::getNext() {
_currIndex++;
- if (static_cast<uint>(_currIndex) < _points.getSize()) {
+ if (_currIndex < (int32)_points.getSize()) {
return _points[_currIndex];
} else {
return nullptr;
@@ -94,7 +94,7 @@ DXVector3 *AdPath3D::getNext() {
//////////////////////////////////////////////////////////////////////////
DXVector3 *AdPath3D::getCurrent() {
- if (_currIndex >= 0 && static_cast<uint>(_currIndex) < _points.getSize()) {
+ if (_currIndex >= 0 && _currIndex < (int32)_points.getSize()) {
return _points[_currIndex];
} else {
return nullptr;
@@ -109,9 +109,9 @@ bool AdPath3D::persist(BasePersistenceManager *persistMgr) {
persistMgr->transferBool(TMEMBER(_ready));
if (persistMgr->getIsSaving()) {
- int32 j = _points.getSize();
+ int32 j = (int32)_points.getSize();
persistMgr->transferSint32("ArraySize", &j);
- for (int i = 0; i < j; i++) {
+ for (int32 i = 0; i < j; i++) {
persistMgr->transferFloat("x", &_points[i]->_x);
persistMgr->transferFloat("y", &_points[i]->_y);
persistMgr->transferFloat("z", &_points[i]->_z);
@@ -119,7 +119,7 @@ bool AdPath3D::persist(BasePersistenceManager *persistMgr) {
} else {
int32 j = 0;
persistMgr->transferSint32("ArraySize", &j);
- for (int i = 0; i < j; i++) {
+ for (int32 i = 0; i < j; i++) {
float x, y, z;
persistMgr->transferFloat("x", &x);
persistMgr->transferFloat("y", &y);
More information about the Scummvm-git-logs
mailing list