mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 20:03:58 +02:00
Fixed build issues with clang
This commit is contained in:
@@ -214,7 +214,7 @@ namespace Glest {
|
|||||||
|
|
||||||
void
|
void
|
||||||
Program::ShowMessageProgramState::mouseMove(int x, int y,
|
Program::ShowMessageProgramState::mouseMove(int x, int y,
|
||||||
const MouseState &
|
const MouseState *
|
||||||
mouseState) {
|
mouseState) {
|
||||||
mouseX = x;
|
mouseX = x;
|
||||||
mouseY = y;
|
mouseY = y;
|
||||||
|
@@ -263,7 +263,7 @@ namespace Glest {
|
|||||||
virtual void
|
virtual void
|
||||||
mouseDownLeft(int x, int y);
|
mouseDownLeft(int x, int y);
|
||||||
virtual void
|
virtual void
|
||||||
mouseMove(int x, int y, const MouseState & mouseState);
|
mouseMove(int x, int y, const MouseState * mouseState);
|
||||||
virtual void
|
virtual void
|
||||||
keyPress(SDL_KeyboardEvent c);
|
keyPress(SDL_KeyboardEvent c);
|
||||||
virtual void
|
virtual void
|
||||||
|
@@ -2726,7 +2726,7 @@ namespace Glest {
|
|||||||
// or when the unit is selected and right clicked to a position.
|
// or when the unit is selected and right clicked to a position.
|
||||||
if (commandType == NULL) {
|
if (commandType == NULL) {
|
||||||
CommandClass command = ccMove; //default command
|
CommandClass command = ccMove; //default command
|
||||||
if (this->getType()->isOfClass(ucWarrior) && (targetUnit == nullptr || this->getTeam() != targetUnit->getTeam()))
|
if (this->getType()->isOfClass(ucWarrior) && (targetUnit == NULL || this->getTeam() != targetUnit->getTeam()))
|
||||||
command = ccAttack;
|
command = ccAttack;
|
||||||
commandType = type->getFirstCtOfClass(command);
|
commandType = type->getFirstCtOfClass(command);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user