Skip to content

Commit

Permalink
TITANIC: Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 3, 2016
1 parent 99b353b commit 3a466a2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions engines/titanic/npcs/true_talk_npc.cpp
Expand Up @@ -222,13 +222,13 @@ void CTrueTalkNPC::startTalker(CViewItem *view) {
gameManager->getTalkManager()->start4(this, view);
}

void CTrueTalkNPC::performAction(bool startTalking, CViewItem *view_) {
void CTrueTalkNPC::performAction(bool startTalkingFlag, CViewItem *destView) {
CPetControl *pet = getPetControl();
if (pet)
pet->resetActiveNPC();

if (startTalking)
startTalker(view_);
if (startTalkingFlag)
startTalker(destView);

if (pet)
pet->convResetNPC();
Expand Down
4 changes: 2 additions & 2 deletions engines/titanic/pet_control/pet_slider.cpp
Expand Up @@ -94,10 +94,10 @@ double CPetSlider::getOffsetPixels() const {

void CPetSlider::setSliderOffset(double offset) {
if (_orientation & ORIENTATION_HORIZONTAL)
_sliderOffset = offset * (_slidingRect.right - _slidingRect.left);
_sliderOffset = (int)(offset * (_slidingRect.right - _slidingRect.left));

if (_orientation & ORIENTATION_VERTICAL)
_sliderOffset = offset * (_slidingRect.bottom - _slidingRect.top);
_sliderOffset = (int)(offset * (_slidingRect.bottom - _slidingRect.top));
}

void CPetSlider::setOffsetPixels(int offset) {
Expand Down
2 changes: 1 addition & 1 deletion engines/titanic/pet_control/pet_sound.cpp
Expand Up @@ -146,7 +146,7 @@ bool CPetSound::MouseButtonDownMsg(const Point &pt) {
CPetSlider *slider = sliders[idx];
bool isLeft = rectLeft.contains(pt);
bool isRight = rectRight.contains(pt);
int offset;
double offset;

if (isLeft) {
slider->stepPosition(-1);
Expand Down
2 changes: 1 addition & 1 deletion engines/titanic/support/movie.cpp
Expand Up @@ -133,7 +133,7 @@ void OSMovie::playClip(const Point &drawPos, uint startFrame, uint endFrame) {
drawPos.y + (heightLess ? CLIP_HEIGHT_REDUCED : CLIP_HEIGHT)
);

uint timePerFrame = 1000 / _aviSurface._frameRate;
uint timePerFrame = (uint)(1000.0 / _aviSurface._frameRate);

for (; endFrame >= startFrame; ++startFrame) {
// Set the frame
Expand Down

0 comments on commit 3a466a2

Please sign in to comment.