ads-game:: model permanently switched to underlying geometry

This commit is contained in:
Zeno Rogue
2022-09-17 16:47:22 +02:00
parent de859c35aa
commit 22ef01964a
5 changed files with 43 additions and 27 deletions
+7
View File
@@ -108,6 +108,8 @@ bool ads_turn(int idelta) {
ld delta = idelta / anims::period;
if(!(cmode & sm::NORMAL)) return false;
hybrid::in_actual([&] {
handle_crashes();
@@ -136,6 +138,8 @@ bool ads_turn(int idelta) {
if(a[16+7] && !la[16+7]) auto_rotate = !auto_rotate;
if(a[16+8] && !la[16+8]) pushScreen(game_menu);
if(auto_angle) pconf.model_orientation += ang;
if(true) {
/* proper time passed */
@@ -204,9 +208,12 @@ bool ads_turn(int idelta) {
}
else view_pt += tc;
}
if(auto_angle) pconf.model_orientation -= ang;
fixmatrix_ads(current.T);
fixmatrix_ads(vctrV.T);
});
return true;
}