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