diff options
| author | Max Horn | 2004-01-03 21:22:07 +0000 | 
|---|---|---|
| committer | Max Horn | 2004-01-03 21:22:07 +0000 | 
| commit | 34db2e793a22fc12b6f30289297aeead967e4f26 (patch) | |
| tree | ead2d13e04d084a65e3845aaa6ac6528c56b87db /scumm/camera.cpp | |
| parent | d49082065a1cbcecffb9069e449ce5c8686ea23d (diff) | |
| download | scummvm-rg350-34db2e793a22fc12b6f30289297aeead967e4f26.tar.gz scummvm-rg350-34db2e793a22fc12b6f30289297aeead967e4f26.tar.bz2 scummvm-rg350-34db2e793a22fc12b6f30289297aeead967e4f26.zip | |
added & renamed some constants; fixed & added some doxygen comments; cleaned up the dirty screen code a bit (this should also fix a bug in V1/V2 games where part of the screen was not redrawn properly)
svn-id: r12118
Diffstat (limited to 'scumm/camera.cpp')
| -rw-r--r-- | scumm/camera.cpp | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/scumm/camera.cpp b/scumm/camera.cpp index 0357392ce9..c35a93a5ca 100644 --- a/scumm/camera.cpp +++ b/scumm/camera.cpp @@ -29,7 +29,7 @@ namespace Scumm {  void ScummEngine::setCameraAtEx(int at) {  	if (!(_features & GF_NEW_CAMERA)) { -		camera._mode = CM_NORMAL; +		camera._mode = kNormalCameraMode;  		camera._cur.x = at;  		setCameraAt(at, 0);  		camera._movingToActor = false; @@ -37,7 +37,7 @@ void ScummEngine::setCameraAtEx(int at) {  }  void ScummEngine::setCameraAt(int pos_x, int pos_y) { -	if (camera._mode != CM_FOLLOW_ACTOR || abs(pos_x - camera._cur.x) > (_screenWidth / 2)) { +	if (camera._mode != kFollowActorCameraMode || abs(pos_x - camera._cur.x) > (_screenWidth / 2)) {  		camera._cur.x = pos_x;  	}  	camera._dest.x = pos_x; @@ -89,12 +89,12 @@ void ScummEngine::setCameraFollows(Actor *a) {  	int t, i; -	camera._mode = CM_FOLLOW_ACTOR; +	camera._mode = kFollowActorCameraMode;  	camera._follows = a->number;  	if (!a->isInCurrentRoom()) {  		startScene(a->getRoom(), 0, 0); -		camera._mode = CM_FOLLOW_ACTOR; +		camera._mode = kFollowActorCameraMode;  		camera._cur.x = a->_pos.x;  		setCameraAt(camera._cur.x, 0);  	} @@ -174,7 +174,7 @@ void ScummEngine::moveCamera() {  		return;  	} -	if (camera._mode == CM_FOLLOW_ACTOR) { +	if (camera._mode == kFollowActorCameraMode) {  		a = derefActor(camera._follows, "moveCamera");  		actorx = a->_pos.x; @@ -353,7 +353,7 @@ void ScummEngine::cameraMoved() {  void ScummEngine::panCameraTo(int x, int y) {  	camera._dest.x = x; -	camera._mode = CM_PANNING; +	camera._mode = kPanningCameraMode;  	camera._movingToActor = false;  } @@ -373,7 +373,7 @@ void ScummEngine::actorFollowCamera(int act) {  /*  		// MI1 compatibilty  		if (act == 0) { -			camera._mode = CM_NORMAL; +			camera._mode = kNormalCameraMode;  			camera._follows = 0;  			camera._movingToActor = false;  			return; | 
