Fixing up how rotation works with combat and then making the lighting better.
This commit is contained in:
parent
4eaf3c35d6
commit
90c37fe4c9
6 changed files with 35 additions and 11 deletions
10
gui/fsm.cpp
10
gui/fsm.cpp
|
@ -152,11 +152,11 @@ namespace gui {
|
|||
try_move(1, true);
|
||||
break;
|
||||
case ROTATE_LEFT:
|
||||
$main_ui.plan_rotate(-1, 0.5f);
|
||||
$main_ui.plan_rotate(-1, 0.25f);
|
||||
state(State::ROTATING);
|
||||
break;
|
||||
case ROTATE_RIGHT:
|
||||
$main_ui.plan_rotate(1, 0.5f);
|
||||
$main_ui.plan_rotate(1, 0.25f);
|
||||
state(State::ROTATING);
|
||||
break;
|
||||
case MAP_OPEN:
|
||||
|
@ -212,11 +212,11 @@ namespace gui {
|
|||
state(State::ATTACKING);
|
||||
break;
|
||||
case ROTATE_LEFT:
|
||||
$main_ui.plan_rotate(-1);
|
||||
$main_ui.plan_rotate(-1, DEFAULT_ROTATE);
|
||||
state(State::COMBAT_ROTATE);
|
||||
break;
|
||||
case ROTATE_RIGHT:
|
||||
$main_ui.plan_rotate(1);
|
||||
$main_ui.plan_rotate(1, DEFAULT_ROTATE);
|
||||
state(State::COMBAT_ROTATE);
|
||||
break;
|
||||
case STOP_COMBAT:
|
||||
|
@ -356,7 +356,7 @@ namespace gui {
|
|||
if($map_open) {
|
||||
$map_ui.render($window, $main_ui.$compass_dir);
|
||||
} else {
|
||||
$mini_map.render($window, $main_ui.$compass_dir);
|
||||
// $mini_map.render($window, $main_ui.$compass_dir);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue