mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-09 07:18:34 -04:00
Makefile compiled builds have the icon now
Also fix flatpak .xml file, inventory shouldn't be closed when B is pressed in classic mode
This commit is contained in:
parent
b27f86384f
commit
bde97e4076
11
Makefile
11
Makefile
@ -33,6 +33,7 @@ LIBS = -mwindows -lwinmm -limagehlp
|
||||
endif
|
||||
|
||||
ifeq ($(PLAT),linux)
|
||||
CFLAGS = -g -pipe -fno-math-errno -DCC_BUILD_ICON
|
||||
LIBS = -lX11 -lXi -lpthread -lGL -ldl
|
||||
endif
|
||||
|
||||
@ -43,31 +44,31 @@ endif
|
||||
|
||||
ifeq ($(PLAT),darwin)
|
||||
OBJECTS += $(BUILD_DIR)/interop_cocoa.o
|
||||
CFLAGS = -g -pipe -fno-math-errno
|
||||
CFLAGS = -g -pipe -fno-math-errno -DCC_BUILD_ICON
|
||||
LIBS =
|
||||
LDFLAGS = -rdynamic -framework Cocoa -framework OpenGL -framework IOKit -lobjc
|
||||
endif
|
||||
|
||||
ifeq ($(PLAT),freebsd)
|
||||
CFLAGS = -g -pipe -I /usr/local/include -fno-math-errno
|
||||
CFLAGS = -g -pipe -I /usr/local/include -fno-math-errno -DCC_BUILD_ICON
|
||||
LDFLAGS = -L /usr/local/lib -rdynamic
|
||||
LIBS = -lexecinfo -lGL -lX11 -lXi -lpthread
|
||||
endif
|
||||
|
||||
ifeq ($(PLAT),openbsd)
|
||||
CFLAGS = -g -pipe -I /usr/X11R6/include -I /usr/local/include -fno-math-errno
|
||||
CFLAGS = -g -pipe -I /usr/X11R6/include -I /usr/local/include -fno-math-errno -DCC_BUILD_ICON
|
||||
LDFLAGS = -L /usr/X11R6/lib -L /usr/local/lib -rdynamic
|
||||
LIBS = -lexecinfo -lGL -lX11 -lXi -lpthread
|
||||
endif
|
||||
|
||||
ifeq ($(PLAT),netbsd)
|
||||
CFLAGS = -g -pipe -I /usr/X11R7/include -I /usr/pkg/include -fno-math-errno
|
||||
CFLAGS = -g -pipe -I /usr/X11R7/include -I /usr/pkg/include -fno-math-errno -DCC_BUILD_ICON
|
||||
LDFLAGS = -L /usr/X11R7/lib -L /usr/pkg/lib -rdynamic
|
||||
LIBS = -lexecinfo -lGL -lX11 -lXi -lpthread
|
||||
endif
|
||||
|
||||
ifeq ($(PLAT),dragonfly)
|
||||
CFLAGS = -g -pipe -I /usr/local/include -fno-math-errno
|
||||
CFLAGS = -g -pipe -I /usr/local/include -fno-math-errno -DCC_BUILD_ICON
|
||||
LDFLAGS = -L /usr/local/lib -rdynamic
|
||||
LIBS = -lexecinfo -lGL -lX11 -lXi -lpthread
|
||||
endif
|
||||
|
@ -108,7 +108,6 @@
|
||||
<release version="1.1.1" date="2019-12-16" type="stable">
|
||||
<url>https://github.com/ClassiCube/ClassiCube/releases/tag/1.1.1</url>
|
||||
</release>
|
||||
</release>
|
||||
</releases>
|
||||
<url type="homepage">https://www.classicube.net/</url>
|
||||
<url type="bugtracker">https://github.com/ClassiCube/ClassiCube/issues</url>
|
||||
|
@ -1644,7 +1644,7 @@ static void InventoryScreen_MoveToSelected(struct InventoryScreen* s) {
|
||||
s->deferredSelect = false;
|
||||
|
||||
if (Game_ClassicMode) {
|
||||
/* Original classic preserves selected block across inventory menu opens */
|
||||
/* Accuracy: Original classic preserves selected block across inventory menu opens */
|
||||
TableWidget_SetToIndex(table, table->selectedIndex);
|
||||
} else {
|
||||
TableWidget_SetToBlock(table, Inventory_SelectedBlock);
|
||||
@ -1709,7 +1709,8 @@ static int InventoryScreen_KeyDown(void* screen, int key) {
|
||||
struct InventoryScreen* s = (struct InventoryScreen*)screen;
|
||||
struct TableWidget* table = &s->table;
|
||||
|
||||
if (KeyBind_Claims(KEYBIND_INVENTORY, key) && s->releasedInv) {
|
||||
/* Accuracy: Original classic doesn't close inventory menu when B is pressed */
|
||||
if (KeyBind_Claims(KEYBIND_INVENTORY, key) && s->releasedInv && !Game_ClassicMode) {
|
||||
Gui_Remove((struct Screen*)s);
|
||||
} else if (Input_IsEnterButton(key) && table->selectedIndex != -1) {
|
||||
Inventory_SetSelectedBlock(table->blocks[table->selectedIndex]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user