1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-02-25 07:52:43 +01:00

#11 fix controls menu for web version

This commit is contained in:
XProger 2018-02-26 04:35:13 +03:00
parent 46ce65f8ec
commit fc29bde5f9
2 changed files with 3 additions and 3 deletions

View File

@ -308,10 +308,10 @@ struct Inventory {
OptionItem &opt = optControlsPlayer[i];
opt = optControls[i];
if (i > 2 && i != 2 && i != 7)
if (i > 2 && opt.offset != SETTINGS( playerIndex ) && opt.offset != SETTINGS( ctrlIndex ) )
opt.offset += sizeof(Core::Settings::Controls) * Core::settings.playerIndex;
if (i > 7) {
if (opt.type == OptionItem::TYPE_KEY) {
if (Core::settings.ctrlIndex == 1) {
opt.offset++; // add offset to joy
opt.color = STR_JOY_FIRST;

View File

@ -119,7 +119,7 @@
<input type="button" value="Browse Level" onclick="document.getElementById('browseFile').click();" /> (.PHD, .PSX, .TR2)
<p style="margin:8px">
OpenLara on <a target="_blank" href="https://github.com/XProger/OpenLara">github</a> & <a target="_blank" href="https://www.facebook.com/OpenLaraTR">facebook</a><br>
<br><i>last update: 22.11.2017</i><br>
<br><i>last update: 26.02.2018</i><br>
</p>
</span>