Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 29376a9f authored by SZCZEPANSKI Marin's avatar SZCZEPANSKI Marin
Browse files

Can't use templace_swi in else block

parent e231927d
No related branches found
No related tags found
1 merge request!2Merge and delete fullgame
MAINPROG := main
OBJECTS := main.o map.o action.o common.o events.o events_map.o read_input.o
DEFINES := -Dtemplate -Dinverse_xy -Dstring_comparison
# DEFINES := -Dstack_alloc -Dinverse_xy -Dstring_comparison
# DEFINES := -Dinverse_xy -Dstring_comparison
# DEFINES := -Dstring_comparison
# DEFINES :=
#DEFINES := -Dtemplate -Dinverse_xy -Dstring_comparison
#DEFINES := -Dstack_alloc -Dinverse_xy -Dstring_comparison
#DEFINES := -Dinverse_xy -Dstring_comparison
#DEFINES := -Dstring_comparison
DEFINES :=
CC := clang
CFLAGS := -g -Wall -Wextra $(DEFINES)
......
......@@ -4,7 +4,7 @@
* level_number: 1107
* available_commands: next step continue
* map_height: 7
* map_width: 21
* map_width: 10
*
* BUG: todo interrupteur
* tag: todo interrupteur
......
......@@ -13,9 +13,7 @@ interactable * create_switch(int x, int y, int n) {
#ifdef template
swi = &template_swi; /* copy template */
#else
*swi = template_swi; /* copy template */
// @AGDB alternatively, just set the state field
// swi->state = DEACTIVATED;
swi->state = DEACTIVATED;
#endif
swi->x = x;
swi->y = y;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment