mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-14 09:04:31 +02:00
fix passport animation
This commit is contained in:
@@ -1258,7 +1258,7 @@ struct Inventory {
|
|||||||
int itemIndex = index == targetIndex ? getGlobalIndex(page, index) : -1;
|
int itemIndex = index == targetIndex ? getGlobalIndex(page, index) : -1;
|
||||||
|
|
||||||
for (int i = 0; i < itemsCount; i++) {
|
for (int i = 0; i < itemsCount; i++) {
|
||||||
items[i]->update(chosen, phaseChoose);
|
items[i]->update(chosen && itemIndex == i, phaseChoose);
|
||||||
float &angle = items[i]->angle;
|
float &angle = items[i]->angle;
|
||||||
|
|
||||||
if (itemIndex != i || chosen) {
|
if (itemIndex != i || chosen) {
|
||||||
|
Reference in New Issue
Block a user