Revision 381
multiplayer
proj/src/libs/rtc/src/rtc.c | ||
---|---|---|
181 | 181 |
if (rtc_read_register(RTC_REG_C, &data)) return; |
182 | 182 |
|
183 | 183 |
if (data & UF) { |
184 |
printf("REACH\n"); |
|
185 | 184 |
if (rtc_read_sec(&s)) return; |
186 | 185 |
if (rtc_read_min(&m)) return; |
187 | 186 |
if (rtc_read_hour(&h)) return; |
188 |
printf("%x %x %x", h, m, s); |
|
189 | 187 |
} |
190 | 188 |
} |
proj/src/project/src/proj.c | ||
---|---|---|
368 | 368 |
break; |
369 | 369 |
|
370 | 370 |
case COM1_IRQ: |
371 |
printf("Reach\n"); |
|
371 | 372 |
nctp_ih(); |
373 |
printf("Reach2\n"); |
|
372 | 374 |
if (bullet_info->new_bullet) { |
373 | 375 |
shoot_bullet(shooter2, bullet_list, bsp_bullet); |
374 | 376 |
bullet_info->new_bullet = false; |
375 | 377 |
} |
376 | 378 |
break; |
379 |
printf("Reach1\n"); |
|
377 | 380 |
} |
378 | 381 |
} |
379 | 382 |
} |
... | ... | |
450 | 453 |
|
451 | 454 |
double angle = get_mouse_angle(shooter1) - M_PI_2; |
452 | 455 |
|
453 |
build_remote_structure(remote_info, get_key_presses(), angle);
|
|
454 |
hltp_send_remote_info(remote_info);
|
|
456 |
if (timer_get_no_interrupts() % 6 ==0){
|
|
457 |
build_remote_structure(remote_info, keys, angle);
|
|
455 | 458 |
|
459 |
hltp_send_remote_info(remote_info); |
|
460 |
} |
|
456 | 461 |
|
462 |
|
|
457 | 463 |
gunner_set_pos(shooter1, (double)host_info->remote_x, (double)host_info->remote_y); |
458 | 464 |
gunner_set_angle(shooter1, (double)host_info->remote_angle); |
459 | 465 |
gunner_set_health(shooter1, (double)host_info->remote_health); |
proj/src/Makefile | ||
---|---|---|
12 | 12 |
SRCS= list.c queue.c graph.c kbc.c keyboard.c mouse.c utils.c timer.c interrupts_func.c fast_math.c xpm_utils.c rtc.c uart.c makecode_map.c menu.c proj_func.c rectangle.c font.c ent.c proj.c hltp.c zombies.c campaign.c singleplayer.c chat.c scoreboards.c |
13 | 13 |
IPATHS=-I./project/include -I./libs -I./libs/graph/include -I./libs/kbc/include -I./libs/rtc/include -I./libs/timer/include -I./libs/uart/include -I./libs/classes/include -I./libs/utils/include -I./maps -I./media/xpm |
14 | 14 |
|
15 |
CPPFLAGS += -pedantic ${IPATHS} -D LCOM_MACRO -D __LCOM_OPTIMIZED__ -Wall -Wextra -Wshadow -Wunreachable-code #-Weverything -Wno-padded -Wno-unused-macros |
|
15 |
CPPFLAGS += -pedantic ${IPATHS} -D LCOM_MACRO #-D __LCOM_OPTIMIZED__ -Wall -Wextra -Wshadow -Wunreachable-code #-Weverything -Wno-padded -Wno-unused-macros
|
|
16 | 16 |
|
17 | 17 |
DPADD += ${LIBLCF} |
18 | 18 |
LDADD += -llcf |
Also available in: Unified diff