From b07d03dedfdd842a1b55178c5c38a357ae4518c8 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Fri, 6 Apr 2012 15:19:32 -0400 Subject: PEGASUS: Silence an MSVC warning --- engines/pegasus/neighborhood/neighborhood.cpp | 2 +- engines/pegasus/neighborhood/neighborhood.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/pegasus') diff --git a/engines/pegasus/neighborhood/neighborhood.cpp b/engines/pegasus/neighborhood/neighborhood.cpp index 224d954eca..c8fc28e148 100644 --- a/engines/pegasus/neighborhood/neighborhood.cpp +++ b/engines/pegasus/neighborhood/neighborhood.cpp @@ -205,7 +205,7 @@ void Neighborhood::receiveNotification(Notification *, const NotificationFlags f die(_extraDeathReason); } -void Neighborhood::arriveAt(RoomID room, DirectionConstant direction) { +void Neighborhood::arriveAt(const RoomID room, const DirectionConstant direction) { if (g_map) g_map->moveToMapLocation(GameState.getCurrentNeighborhood(), room, direction); diff --git a/engines/pegasus/neighborhood/neighborhood.h b/engines/pegasus/neighborhood/neighborhood.h index 93d29b6622..8a38eb3389 100644 --- a/engines/pegasus/neighborhood/neighborhood.h +++ b/engines/pegasus/neighborhood/neighborhood.h @@ -132,7 +132,7 @@ public: virtual void cantMoveThatWay(CanMoveForwardReason); virtual void cantTurnThatWay(CanTurnReason) {} virtual void cantOpenDoor(CanOpenDoorReason); - virtual void arriveAt(RoomID room, DirectionConstant direction); + virtual void arriveAt(const RoomID room, const DirectionConstant direction); virtual void turnTo(const DirectionConstant); virtual void spotCompleted(); virtual void doorOpened(); -- cgit v1.2.3