Commit d91b02d4 authored by Gerhard Stein's avatar Gerhard Stein

dbopl adaptations to better C++ Standards

parent ee9c6775
......@@ -250,7 +250,14 @@ void CPlayerWM::verifyTeleportation()
void CPlayerWM::processEnteringElevator()
{
// TODO: Move him to the target
// Move him to the target
VectorD2<int> pos(getXPosition(), getYPosition());
VectorD2<int> vec = target-pos;
vec / vec.GetLength2();
moveDir(vec);
performWalkingAnimation(true);
}
......
......@@ -80,13 +80,13 @@ enum {
MASK_TREMOLO = 0x80,
};
typedef enum {
OFF,
enum OperatorState{
OFF = 0,
RELEASE,
SUSTAIN,
DECAY,
ATTACK,
} OperatorState;
};
struct _Operator {
VolumeHandler volHandler;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment