Skip to content

Commit

Permalink
Minor visual fixed to the map generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianMarceau committed Apr 23, 2017
1 parent f28960a commit 3a884ae
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion pages/dev_map-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,13 @@ function temp_remaining_cell_positions(){

// Create an event somewhere on the map with this robot
$remaining = temp_remaining_cell_positions();
$temp_pos = $remaining[mt_rand(0, count($remaining) - 1)];
if ($this_map_scale == 1){
$temp_max = count($remaining) - 1;
$temp_min = round(count($remaining) / 2);
$temp_pos = $remaining[mt_rand($temp_min, $temp_max)];
} else {
$temp_pos = $remaining[mt_rand(0, count($remaining) - 1)];
}
$this_map_events[$temp_pos] = array('kind' => 'robot', 'token' => $temp_robot_token, 'size' => $temp_robot_info['robot_image_size']);

//echo('<hr />');
Expand Down
6 changes: 3 additions & 3 deletions styles/dev.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
background-color: #696969;
border-radius: 6px;
margin: 0 auto;
overflow: hidden;
overflow: visible;
}

#window .field_map > .wrapper,
Expand Down Expand Up @@ -68,7 +68,7 @@
}

#window .field_map .event_grid {
overflow: hidden;
overflow: visible;
background-position: -9999px -9999px;
background-repeat: no-repeat;
background-size: 1px 1px;
Expand Down Expand Up @@ -421,7 +421,7 @@

#window .field_counters {
display: block;
margin: 5px auto 10px;
margin: 5px auto 15px;
padding: 0 10px;
overflow: hidden;
font-size: 16px;
Expand Down
1 change: 1 addition & 0 deletions styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ button {
position: relative;
font-size: 0;
height: 30px;
z-index: 20;
}
#window .menu .subs {
display: none;
Expand Down

0 comments on commit 3a884ae

Please sign in to comment.