1
This commit is contained in:
parent
2236a9b640
commit
faf591dcc6
@ -140,6 +140,6 @@ const int SMOKE_SLOT = 4;
|
|||||||
|
|
||||||
const int MAP_HEIGHT = 8192;
|
const int MAP_HEIGHT = 8192;
|
||||||
const int MAP_WIDTH = 8192;
|
const int MAP_WIDTH = 8192;
|
||||||
const int MAP_CELL_WIDTH = 64 * 5;
|
const int MAP_CELL_WIDTH = 64 * 8;
|
||||||
|
|
||||||
const int DOOR_THING_ID = 61701;
|
const int DOOR_THING_ID = 61701;
|
||||||
|
@ -111,7 +111,6 @@ void Player::UpdateMove()
|
|||||||
moved_frames = 0;
|
moved_frames = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
bool move_ok = false;
|
|
||||||
int speed = std::max(1, (int)GetSpeed());
|
int speed = std::max(1, (int)GetSpeed());
|
||||||
for (int i = 0; i < speed; ++i) {
|
for (int i = 0; i < speed; ++i) {
|
||||||
Vector2D old_pos = pos;
|
Vector2D old_pos = pos;
|
||||||
@ -120,7 +119,9 @@ void Player::UpdateMove()
|
|||||||
pos = old_pos;
|
pos = old_pos;
|
||||||
#if 1
|
#if 1
|
||||||
FindPath();
|
FindPath();
|
||||||
i += 1;
|
if (rand() % 3 == 0) {
|
||||||
|
i += 1;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
FindPath();
|
FindPath();
|
||||||
@ -129,8 +130,6 @@ void Player::UpdateMove()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
move_ok = true;
|
move_ok = true;
|
||||||
}
|
|
||||||
if (move_ok) {
|
|
||||||
room->grid_service.MoveHuman(this);
|
room->grid_service.MoveHuman(this);
|
||||||
}
|
}
|
||||||
if (last_collision_door && !TestCollision(last_collision_door)) {
|
if (last_collision_door && !TestCollision(last_collision_door)) {
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include "hero.h"
|
#include "hero.h"
|
||||||
|
|
||||||
const int ROOM_MAX_PLAYER_NUM = 50;
|
const int ROOM_MAX_PLAYER_NUM = 50;
|
||||||
#if 0
|
#if 1
|
||||||
const int ANDROID_NUM = 0;
|
const int ANDROID_NUM = 0;
|
||||||
#else
|
#else
|
||||||
const int ANDROID_NUM = 10;
|
const int ANDROID_NUM = 10;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user