This commit is contained in:
aozhiwei 2019-07-04 09:34:07 +08:00
parent ca340b7aa2
commit c028457202
2 changed files with 3 additions and 6 deletions

View File

@ -298,10 +298,7 @@ bool Human::IsCollision()
switch (entity->entity_type) {
case ET_Obstacle:
{
if (
(last_collision_door == nullptr || last_collision_door != entity) &&
TestCollision(entity)
){
if (TestCollision(entity)){
objects.push_back(entity);
}
}

View File

@ -250,8 +250,8 @@ void Room::CreateAndroid(int robot_num)
hum->robot_meta = robot_meta;
hum->entity_uniid = AllocUniid();
{
hum->pos.x = 200 + rand() % 1400;
hum->pos.y = 300 + rand() % 1500;
hum->pos.x = 200 + rand() % 500;
hum->pos.y = 300 + rand() % 300;
hum->attack_dir = hum->pos;
hum->attack_dir.Normalize();
hum->attack_dir.Rotate(a8::RandAngle());