forked from mirrors/kolyah35-minecraft-pe-0.6.1
FIX: MSVC compile and item gui on desktop
This commit is contained in:
parent
00bd8a8ff4
commit
f82021117c
9 changed files with 80 additions and 59 deletions
|
|
@ -665,7 +665,12 @@ void Minecraft::tickInput() {
|
|||
|
||||
if (e.action == MouseAction::ACTION_WHEEL) {
|
||||
Inventory* v = player->inventory;
|
||||
int numSlots = gui.getNumSlots() - 1;
|
||||
|
||||
int numSlots = gui.getNumSlots();
|
||||
#ifndef PLATFORM_DESKTOP
|
||||
numSlots--;
|
||||
#endif
|
||||
|
||||
int slot = (v->selected - e.dy + numSlots) % numSlots;
|
||||
v->selectSlot(slot);
|
||||
}
|
||||
|
|
@ -1266,7 +1271,7 @@ void Minecraft::hostMultiplayer(int port) {
|
|||
//
|
||||
/*static*/
|
||||
|
||||
void* Minecraft::prepareLevel_tspawn(void *p_param)
|
||||
void* Minecraft::prepareLevel_tspawn(void *p_param)
|
||||
{
|
||||
Minecraft* mc = (Minecraft*) p_param;
|
||||
mc->generateLevel("Currently not used", mc->level);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue