Skip to content

Commit

Permalink
Dropped sLastTrackLengthMS
Browse files Browse the repository at this point in the history
  • Loading branch information
captainurist committed Nov 9, 2023
1 parent 7e2ce5c commit d199fcc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/Engine/Objects/Character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7324,7 +7324,9 @@ void Character::playReaction(CharacterSpeech speech, int a3) {
int expressionDuration = 0;
if (expression == CHARACTER_EXPRESSION_TALK && pickedSoundID) {
if (pickedSoundID >= 0) {
expressionDuration = (sLastTrackLengthMS << 7) / 1000;
// TODO(captainurist): #sound sLastTrackLengthMS wasn't set, so was dropped. Implement properly, right now
// this doesn't work.
expressionDuration = 1000; // Was (sLastTrackLengthMS << 7) / 1000;
}
}
playEmotion(expression, expressionDuration);
Expand Down
1 change: 0 additions & 1 deletion src/Media/Audio/AudioPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

#include "SoundInfo.h"

int sLastTrackLengthMS;
std::unique_ptr<AudioPlayer> pAudioPlayer;
SoundList *pSoundList;

Expand Down
1 change: 0 additions & 1 deletion src/Media/Audio/AudioPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ class SoundList {
void FromFile(const Blob &data_mm6, const Blob &data_mm7, const Blob &data_mm8);
};

extern int sLastTrackLengthMS;
extern std::unique_ptr<AudioPlayer> pAudioPlayer;
extern SoundList *pSoundList;

Expand Down

0 comments on commit d199fcc

Please sign in to comment.