mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 03:09:49 +02:00
Fixed broken links
This commit is contained in:
@@ -1338,9 +1338,6 @@ namespace Game {
|
||||
|
||||
bool UnitType::getCellMapCell(int x, int y, CardinalDir facing) const {
|
||||
assert(cellMap);
|
||||
if (cellMap == NULL) {
|
||||
throw game_runtime_error("cellMap == NULL");
|
||||
}
|
||||
|
||||
//checkItemInVault(&(this->size),this->size);
|
||||
int tmp = 0;
|
||||
|
@@ -1352,7 +1352,8 @@ namespace Game {
|
||||
assert(isInside(currPos));
|
||||
|
||||
if (ut->hasCellMap() == false || ut->getCellMapCell(i, j, unit->getModelFacing())) {
|
||||
if (getCell(currPos)->getUnit(field) != NULL && getCell(currPos)->getUnit(field) != unit) {
|
||||
Unit* current = getCell(currPos)->getUnit(field);
|
||||
if (current != NULL && current != unit) {
|
||||
//if unit tries to move into a cell where another unit resides cancel the move command
|
||||
if (unit->getCurrSkill() != NULL &&
|
||||
unit->getCurrSkill()->getClass() == scMove) {
|
||||
|
@@ -69,7 +69,7 @@ namespace Game {
|
||||
|
||||
private:
|
||||
Cell(Cell&);
|
||||
void operator=(Cell&);
|
||||
//void operator=(Cell&);
|
||||
|
||||
public:
|
||||
Cell();
|
||||
|
@@ -69,7 +69,7 @@ namespace Shared {
|
||||
flags |= flag;
|
||||
}
|
||||
static bool isFlagSet(GlobalStaticFlagTypes flag) {
|
||||
return (flags & (unsigned int) flag) == (unsigned int) flag;
|
||||
return (flags & flag) == flag;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user