Changeset 555
- Timestamp:
- Apr 29, 2011, 9:18:23 PM (12 years ago)
- Location:
- abuse/trunk
- Files:
-
- 2 deleted
- 207 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/configure.ac
r551 r555 80 80 AC_HEADER_DIRENT 81 81 AC_HEADER_STDC 82 AC_CHECK_HEADERS(fcntl.h malloc.h string.h sys/ioctl.h sys/time.h unistd.h) 82 AC_CHECK_HEADERS(fcntl.h malloc.h string.h sys/ioctl.h sys/time.h unistd.h 83 netinet/in.h) 83 84 84 85 dnl Checks for functions -
abuse/trunk/src/Makefile.am
r540 r555 25 25 lcache.cpp lcache.h \ 26 26 nfclient.cpp nfclient.h \ 27 username.cpp \28 27 clisp.cpp clisp.h \ 29 28 gui.cpp gui.h \ -
abuse/trunk/src/ability.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/ability.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/ant.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <ctype.h> -
abuse/trunk/src/ant.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/automap.cpp
r518 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/automap.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/cache.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #if (defined(__MACH__) || !defined(__APPLE__)) … … 24 26 #include "video.h" 25 27 #include "dprint.h" 26 #include "exitproc.h"27 28 #include "lcache.h" 28 29 #include "status.h" -
abuse/trunk/src/cache.h
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/chars.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/chars.h
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 … … 87 87 { 88 88 public : 89 u short ts,tiv,tv; // total states, total index vars, total local vars89 uint16_t ts,tiv,tv; // total states, total index vars, total local vars 90 90 sequence **seq; // [0..ts-1] 91 91 void **seq_syms; // symbol describing what this state is [0..ts-1] … … 101 101 long rangex,rangey,draw_rangex,draw_rangey; // range off screen before character is skipped 102 102 103 u short cflags;103 uint16_t cflags; 104 104 void *get_fun(int name) { return fun_table[name]; } 105 105 int get_cflag(int name) { return cflags&(1<<name); } -
abuse/trunk/src/chat.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/chat.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/clisp.cpp
r527 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <string.h> … … 943 945 case 54 : 944 946 { 947 #if defined __CELLOS_LV2__ 948 /* FIXME: retrieve the PS3 account name */ 949 char const *cd = "Player"; 950 #else 945 951 char cd[150]; 946 getcwd(cd,100); 952 getcwd(cd, 100); 953 #endif 947 954 return LString::Create(cd); 948 955 } break; 949 956 case 55 : 950 { system(lstring_value(CAR(args)->Eval())); } break; 957 #if !defined __CELLOS_LV2__ 958 /* FIXME: this looks rather dangerous */ 959 system(lstring_value(CAR(args)->Eval())); 960 #endif 961 break; 951 962 case 56 : 952 963 { … … 2177 2188 case 276 : 2178 2189 { 2190 #if defined __CELLOS_LV2__ 2191 return 0; 2192 #else 2179 2193 if (!main_net_cfg) return 0; 2180 2194 return become_server(game_name); 2195 #endif 2181 2196 } break; 2182 2197 case 277 : -
abuse/trunk/src/clisp.h
r534 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/collide.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/common.h
r525 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/compiled.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 #include <string.h> 14 #include <malloc.h> 15 #include <cstring> 15 16 16 17 #include "lisp.h" 18 19 using namespace std; 17 20 18 21 extern int total_objects; -
abuse/trunk/src/compiled.h
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/configuration.cpp
r534 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <ctype.h> -
abuse/trunk/src/configuration.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/console.cpp
r518 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <ctype.h> -
abuse/trunk/src/console.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/control.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "game.h" -
abuse/trunk/src/control.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/cop.cpp
r527 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/cop.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/crc.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "crc.h" -
abuse/trunk/src/crc.h
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/demo.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/demo.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/dev.cpp
r545 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <ctype.h> -
abuse/trunk/src/dev.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/devsel.cpp
r533 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/devsel.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/director.cpp
r518 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/director.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/endgame.cpp
r533 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <math.h> -
abuse/trunk/src/extend.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/extend.h
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/fakelib.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/fnt6x13.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/game.cpp
r554 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <ctype.h> 14 16 #include <setjmp.h> 17 #include <unistd.h> 15 18 16 19 #ifdef __APPLE__ … … 82 85 83 86 // Enabled TCPIP driver 87 #if !defined __CELLOS_LV2__ 84 88 #include "tcpip.h" 85 89 tcpip_protocol tcpip; 90 #endif 86 91 87 92 FILE *open_FILE(char const *filename, char const *mode) … … 543 548 } 544 549 550 #if !defined __CELLOS_LV2__ 545 551 base->current_tick=(current_level->tick_counter()&0xff); 552 #endif 546 553 547 554 current_level->level_loaded_notify(); … … 1397 1404 calc_light_table(pal); 1398 1405 1406 #if !defined __CELLOS_LV2__ 1399 1407 if(current_level == NULL && net_start()) // if we joined a net game get level from server 1400 1408 { … … 1406 1414 // load_level(NET_STARTFILE); 1407 1415 } 1408 1416 #endif 1409 1417 1410 1418 set_mode(19, argc, argv); … … 1474 1482 gamma_correct(pal); 1475 1483 1484 #if defined __CELLOS_LV2__ 1485 if(!start_edit) 1486 do_title(); 1487 #else 1476 1488 if(main_net_cfg == NULL || (main_net_cfg->state != net_configuration::SERVER && 1477 1489 main_net_cfg->state != net_configuration::CLIENT)) … … 1484 1496 start_running = 1; 1485 1497 } 1498 #endif 1486 1499 1487 1500 … … 1679 1692 if(ev.type != EV_KEY || !key_down(ev.key) || ev.window || (dev & EDIT_MODE)) 1680 1693 { 1694 #if !defined __CELLOS_LV2__ 1681 1695 if(ev.type == EV_KEY) 1682 1696 { … … 1716 1730 } 1717 1731 } 1732 #endif 1718 1733 1719 1734 if((dev & EDIT_MODE) || start_edit || ev.type == EV_MESSAGE) … … 1930 1945 void net_send(int force = 0) 1931 1946 { 1947 #if !defined __CELLOS_LV2__ 1932 1948 if((!(dev & EDIT_MODE)) || force) 1933 1949 { … … 1964 1980 } 1965 1981 } 1982 #endif 1966 1983 } 1967 1984 1968 1985 void net_receive() 1969 1986 { 1987 #if !defined __CELLOS_LV2__ 1970 1988 if(!(dev & EDIT_MODE) && current_level) 1971 1989 { … … 1988 2006 process_packet_commands(buf, size); 1989 2007 } 2008 #endif 1990 2009 } 1991 2010 … … 2356 2375 void game_net_init(int argc, char **argv) 2357 2376 { 2377 #if !defined __CELLOS_LV2__ 2358 2378 int nonet=!net_init(argc, argv); 2359 2379 if(nonet) … … 2380 2400 } 2381 2401 } 2382 2402 #endif 2383 2403 } 2384 2404 … … 2443 2463 timer_init(); 2444 2464 2465 #if !defined __CELLOS_LV2__ 2445 2466 // look to see if we are supposed to fetch the data elsewhere 2446 2467 if (getenv("ABUSE_PATH")) … … 2450 2471 if (getenv("ABUSE_SAVE_PATH")) 2451 2472 set_save_filename_prefix(getenv("ABUSE_SAVE_PATH")); 2473 #endif 2452 2474 2453 2475 jrand_init(); … … 2479 2501 g->get_input(); // prime the net 2480 2502 2503 #if !defined __CELLOS_LV2__ 2481 2504 for (int i = 1; i + 1 < argc; i++) 2482 2505 { … … 2502 2525 g->update_screen(); // redraw the screen with any changes 2503 2526 } 2527 #endif 2504 2528 2505 2529 while (!g->done()) … … 2536 2560 demo_man.do_inputs(); 2537 2561 2562 #if !defined __CELLOS_LV2__ 2538 2563 service_net_request(); 2564 #endif 2539 2565 2540 2566 // process all the objects in the world 2541 2567 g->step(); 2568 #if !defined __CELLOS_LV2__ 2542 2569 server_check(); 2570 #endif 2543 2571 g->calc_speed(); 2544 2572 … … 2548 2576 } 2549 2577 2578 #if !defined __CELLOS_LV2__ 2550 2579 net_uninit(); 2551 2580 … … 2553 2582 net_crcs->clean_up(); 2554 2583 delete net_crcs; net_crcs = NULL; 2584 #endif 2555 2585 2556 2586 delete chat; … … 2591 2621 lisp_uninit(); 2592 2622 2623 #if !defined __CELLOS_LV2__ 2593 2624 base->packet.packet_reset(); 2625 #endif 2594 2626 } 2595 2627 while (main_net_cfg && main_net_cfg->restart_state()); -
abuse/trunk/src/game.h
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/gamma.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <math.h> -
abuse/trunk/src/gamma.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/go.cpp
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "go.h" -
abuse/trunk/src/go.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/gui.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/gui.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/help.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/help.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/id.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/dprint.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdlib.h> -
abuse/trunk/src/imlib/dprint.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/event.h
r519 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/filesel.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <unistd.h> … … 51 53 if (x<td) 52 54 { 55 #if !defined __CELLOS_LV2__ 53 56 if (strcmp(d[x],".")) 54 57 { … … 79 82 draw_first(screen); 80 83 } 84 #endif 81 85 } else 82 86 { -
abuse/trunk/src/imlib/filesel.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/filter.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/imlib/filter.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/fonts.cpp
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <ctype.h> -
abuse/trunk/src/imlib/fonts.h
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/glview.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <math.h> -
abuse/trunk/src/imlib/guistat.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <string.h> -
abuse/trunk/src/imlib/guistat.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/image.cpp
r534 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <math.h> -
abuse/trunk/src/imlib/image.h
r526 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/include.cpp
r523 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/imlib/include.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/input.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <string.h> -
abuse/trunk/src/imlib/input.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/jdir.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/jrand.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <time.h> -
abuse/trunk/src/imlib/jrand.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/jwindow.cpp
r518 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <string.h> -
abuse/trunk/src/imlib/jwindow.h
r534 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/keys.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <string.h> -
abuse/trunk/src/imlib/keys.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/linked.cpp
r535 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdio.h> -
abuse/trunk/src/imlib/linked.h
r534 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/mouse.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/palette.cpp
r534 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <math.h> … … 143 145 else 144 146 { 145 v=(int) ((double)i+(double)(sqrt(63 -i)));147 v=(int) ((double)i+(double)(sqrt(63.0-i))); 146 148 v<<=2; 147 149 } -
abuse/trunk/src/imlib/palette.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/pcxread.cpp
r549 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/imlib/pcxread.h
r549 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/pmenu.cpp
r518 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <string.h> -
abuse/trunk/src/imlib/pmenu.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/scroller.cpp
r518 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/imlib/scroller.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/specs.cpp
r548 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdio.h> -
abuse/trunk/src/imlib/specs.h
r546 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/sprite.cpp
r534 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <math.h> -
abuse/trunk/src/imlib/sprite.h
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/status.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <string.h> -
abuse/trunk/src/imlib/status.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/supmorph.cpp
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/imlib/supmorph.h
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/timing.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 … … 15 15 { 16 16 public: 17 #if defined __CELLOS_LV2__ 18 uint64_t ticks; 19 #else 17 20 long seconds; 18 21 long micro_seconds; 22 #endif 19 23 void get_time(); 20 24 time_marker(); -
abuse/trunk/src/imlib/tools.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/imlib/tools.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/transimage.cpp
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <cstdio> -
abuse/trunk/src/imlib/transimage.h
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/video.cpp
r534 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdlib.h> -
abuse/trunk/src/imlib/video.h
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/imlib/visobj.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <string.h> -
abuse/trunk/src/imlib/visobj.h
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/innet.cpp
r545 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdio.h> … … 731 733 if (game_face) game_face->game_start_wait(); 732 734 } 735 -
abuse/trunk/src/intsect.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdlib.h> -
abuse/trunk/src/intsect.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/isllist.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/items.cpp
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/items.h
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/lcache.cpp
r504 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 … … 15 15 */ 16 16 17 #include "config.h" 17 #if defined HAVE_CONFIG_H 18 # include "config.h" 19 #endif 18 20 19 21 #include "lisp.h" -
abuse/trunk/src/lcache.h
r500 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/letters.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/level.cpp
r527 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #if (defined(__MACH__) || !defined(__APPLE__)) -
abuse/trunk/src/level.h
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/light.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdlib.h> -
abuse/trunk/src/light.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/lisp/lisp.cpp
r554 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdio.h> -
abuse/trunk/src/lisp/lisp.h
r504 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/lisp/lisp_gc.cpp
r554 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdlib.h> -
abuse/trunk/src/lisp/lisp_gc.h
r554 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/lisp/lisp_opt.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #ifdef NO_LIBS -
abuse/trunk/src/lisp/lisp_opt.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/lisp/stack.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/lisp/trig.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/loader2.cpp
r545 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <math.h> … … 313 315 #endif 314 316 315 if (!net_start()) // don't let them specify a startup file we are connect elsewhere 317 #if defined __CELLOS_LV2__ 318 if (1) 319 #else 320 // don't let them specify a startup file we are connect elsewhere 321 if (!net_start()) 322 #endif 316 323 { 317 324 for (int i=1; i<argc; i++) … … 328 335 } 329 336 } 330 } else if (!get_remote_lsf(net_server,lsf)) 337 } 338 #if !defined __CELLOS_LV2__ 339 else if (!get_remote_lsf(net_server,lsf)) 331 340 { 332 341 dprintf("Unable to get remote lsf from %s\n",net_server); 333 342 exit(0); 334 343 } 344 #endif 335 345 char prog[100]; 336 346 char const *cs; -
abuse/trunk/src/loader2.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 … … 38 38 39 39 extern int damage_pict,block_pict; 40 extern u short current_start_type,start_position_type;40 extern uint16_t current_start_type,start_position_type; 41 41 42 42 -
abuse/trunk/src/loadgame.cpp
r538 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <string.h> -
abuse/trunk/src/loadgame.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/lol/matrix.cpp
r509 r555 17 17 18 18 #include "lol/matrix.h" 19 20 using namespace std; 19 21 20 22 namespace lol -
abuse/trunk/src/lol/matrix.h
r516 r555 114 114 inline float len() const \ 115 115 { \ 116 using namespace std; \ 116 117 return sqrtf((float)sqlen()); \ 117 118 } -
abuse/trunk/src/menu.cpp
r518 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <math.h> … … 35 37 #include "scroller.h" 36 38 #include "netcfg.h" 37 #include "sock.h" 38 39 40 #if !defined __CELLOS_LV2__ 41 # include "net/sock.h" 39 42 extern net_protocol *prot; 43 #else 44 static int const prot = 0; 45 #endif 40 46 41 47 static VolumeWindow *volume_window; -
abuse/trunk/src/menu.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/morpher.cpp
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/morpher.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/net/engine.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/net/fileman.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdio.h> -
abuse/trunk/src/net/gclient.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdio.h> -
abuse/trunk/src/net/gserver.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdio.h> -
abuse/trunk/src/net/netdrv.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdio.h> -
abuse/trunk/src/net/netfile.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/net/sock.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdlib.h> -
abuse/trunk/src/net/tcpip.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #ifdef _AIX -
abuse/trunk/src/net/tcpip.h
r494 r555 1 #include "sock.h" 1 /* 2 * Abuse - dark 2D side-scrolling platform game 3 * Copyright (c) 1995 Crack dot Com 4 * Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net> 5 * 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 */ 2 10 3 11 #include <stdlib.h> 4 12 #include <fcntl.h> 5 #include <sys/ioctl.h> 6 #include <sys/stat.h> 13 #if defined HAVE_SYS_IOCTL_H 14 # include <sys/ioctl.h> 15 # include <sys/stat.h> 16 # include <sys/types.h> 17 #include <signal.h> 18 #endif 7 19 #include <sys/types.h> 8 #include <signal.h> 9 #include <sys/types.h> 20 21 #if defined __APPLE__ && !defined __MACH__ 22 # include "GUSI.h" 23 #elif defined HAVE_NETINET_IN_H 24 # include <netdb.h> 25 # include <netinet/in.h> 26 # include <stdio.h> 27 # include <string.h> 28 # include <sys/time.h> 29 # include <sys/ipc.h> 30 # include <sys/shm.h> 31 # include <sys/socket.h> 32 # include <unistd.h> 33 # ifdef HAVE_BSTRING_H 34 # include <bstring.h> 35 # else 36 # include <sys/select.h> 37 # endif 38 #endif 39 40 #include "sock.h" 10 41 #include "isllist.h" 11 42 12 #if (defined(__APPLE__) && !defined(__MACH__)) 13 #include "GUSI.h" 14 #else 15 #include <netdb.h> 16 #include <netinet/in.h> 17 #include <stdio.h> 18 #include <string.h> 19 #include <sys/time.h> 20 #include <sys/ipc.h> 21 #include <sys/shm.h> 22 #include <sys/socket.h> 23 #include <unistd.h> 24 #ifdef HAVE_BSTRING_H 25 #include <bstring.h> 26 #else 27 #include <sys/select.h> 28 #endif 29 #endif 30 31 extern fd_set master_set,master_write_set,read_set,exception_set,write_set; 43 extern fd_set master_set, master_write_set, read_set, exception_set, write_set; 32 44 33 45 class ip_address : public net_address -
abuse/trunk/src/net/undrv.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdio.h> -
abuse/trunk/src/netcfg.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" … … 18 20 #include "input.h" 19 21 #include "cache.h" 20 #include "sock.h"21 22 #include "timing.h" 22 23 #include "light.h" … … 24 25 #include "dev.h" 25 26 27 #if !defined __CELLOS_LV2__ 28 # include "net/sock.h" 29 #endif 30 26 31 extern char *get_login(); 27 net_configuration *main_net_cfg =NULL;32 net_configuration *main_net_cfg = NULL; 28 33 extern char lsf[256]; 29 34 35 #if !defined __CELLOS_LV2__ 30 36 extern net_protocol *prot; 31 37 … … 591 597 } 592 598 593 599 #endif // __CELLOS_LV2__ 600 -
abuse/trunk/src/netcfg.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/netface.h
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/newlight.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdlib.h> -
abuse/trunk/src/nfclient.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #if (defined(__MACH__) || !defined(__APPLE__)) … … 29 31 30 32 #include "gserver.h" 33 34 #if !defined __CELLOS_LV2__ 31 35 32 36 void remove_client(int client_number) { ; } … … 243 247 } 244 248 249 #endif 250 -
abuse/trunk/src/nfclient.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/nfserver.h
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 11 #ifndef __NFSERVER_HPP_ 12 12 #define __NFSERVER_HPP_ 13 14 #if !defined __CELLOS_LV2__ 13 15 14 16 #include "specs.h" … … 55 57 56 58 #endif 59 #endif -
abuse/trunk/src/objects.cpp
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/objects.h
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/old.nfclient.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <sys/types.h> -
abuse/trunk/src/old.nfserver.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "jnet.h" -
abuse/trunk/src/old_server.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <unistd.h> -
abuse/trunk/src/oldhelp.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <string.h> -
abuse/trunk/src/parse.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdio.h> -
abuse/trunk/src/parse.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/particle.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/particle.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/points.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <string.h> -
abuse/trunk/src/points.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/profile.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/profile.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/property.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdio.h> -
abuse/trunk/src/property.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/sbar.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/scene.cpp
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <stdio.h> -
abuse/trunk/src/scene.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/sdlport/event.cpp
r524 r555 19 19 */ 20 20 21 #include "config.h" 21 #if defined HAVE_CONFIG_H 22 # include "config.h" 23 #endif 22 24 23 25 #include <SDL.h> -
abuse/trunk/src/sdlport/jdir.cpp
r494 r555 19 19 */ 20 20 21 #include "config.h" 21 #if defined HAVE_CONFIG_H 22 # include "config.h" 23 #endif 22 24 23 25 #include <stdio.h> -
abuse/trunk/src/sdlport/jnet.cpp
r524 r555 21 21 /* FIXME: this file is unused */ 22 22 23 #include "config.h" 23 #if defined HAVE_CONFIG_H 24 # include "config.h" 25 #endif 24 26 25 27 #include <stdio.h> -
abuse/trunk/src/sdlport/jnet.h
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/sdlport/joy.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/sdlport/joystick.cpp
r494 r555 19 19 */ 20 20 21 #include "config.h" 21 #if defined HAVE_CONFIG_H 22 # include "config.h" 23 #endif 22 24 23 25 #include "joy.h" -
abuse/trunk/src/sdlport/mouse.cpp
r513 r555 19 19 */ 20 20 21 #include "config.h" 21 #if defined HAVE_CONFIG_H 22 # include "config.h" 23 #endif 22 24 23 25 #include <SDL.h> -
abuse/trunk/src/sdlport/setup.cpp
r540 r555 19 19 */ 20 20 21 #include "config.h" 21 #if defined HAVE_CONFIG_H 22 # include "config.h" 23 #endif 22 24 23 25 #include <stdio.h> -
abuse/trunk/src/sdlport/setup.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/sdlport/sound.cpp
r552 r555 19 19 */ 20 20 21 #include "config.h" 21 #if defined HAVE_CONFIG_H 22 # include "config.h" 23 #endif 22 24 23 25 #include <cstring> -
abuse/trunk/src/sdlport/sound.h
r552 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 … … 12 12 #define __SOUND_H__ 13 13 14 #include <SDL/SDL_mixer.h> 14 #if !defined __CELLOS_LV2__ 15 # include <SDL/SDL_mixer.h> 16 #endif 15 17 16 18 /* options are passed via command line */ … … 32 34 33 35 private: 36 #if !defined __CELLOS_LV2__ 34 37 Mix_Chunk* m_chunk; 38 #endif 35 39 }; 36 40 … … 38 42 { 39 43 public: 44 #if !defined __CELLOS_LV2__ 40 45 char const *name() { return Name; } 46 #endif 41 47 song(char const *filename); 42 48 void play(unsigned char volume=127); … … 47 53 48 54 private: 55 #if !defined __CELLOS_LV2__ 49 56 char *Name; 50 57 unsigned char *data; … … 52 59 Mix_Music* music; 53 60 SDL_RWops* rw; 61 #endif 54 62 }; 55 63 -
abuse/trunk/src/sdlport/timing.cpp
r494 r555 19 19 */ 20 20 21 #include "config.h" 21 #if defined HAVE_CONFIG_H 22 # include "config.h" 23 #endif 22 24 23 25 #include <stdio.h> -
abuse/trunk/src/sdlport/video.cpp
r524 r555 19 19 */ 20 20 21 #include "config.h" 21 #if defined HAVE_CONFIG_H 22 # include "config.h" 23 #endif 22 24 23 25 #include <SDL.h> -
abuse/trunk/src/sensor.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/seq.cpp
r527 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/seq.h
r541 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/server2.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "server2.h" … … 21 23 #include "dev.h" 22 24 23 extern char const *get_username();24 25 int start_running=0; 25 26 -
abuse/trunk/src/server2.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/smallfnt.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/smoosh.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #define PARTICLE_SIZE 2 // 2x2 block of pixels -
abuse/trunk/src/specache.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "specache.h" -
abuse/trunk/src/specache.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/statbar.cpp
r512 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/status.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <string.h> -
abuse/trunk/src/tester.cpp
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "items.h" -
abuse/trunk/src/tool/abuse-tool.cpp
r550 r555 9 9 // 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <cstring> -
abuse/trunk/src/transp.cpp
r518 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/transp.h
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 -
abuse/trunk/src/ui/volumewindow.cpp
r513 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include "common.h" -
abuse/trunk/src/ui/volumewindow.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 11 #include "config.h"12 10 13 11 #include "dev.h" -
abuse/trunk/src/unixnfc.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <sys/types.h> -
abuse/trunk/src/view.cpp
r524 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 11 #include "config.h" 11 #if defined HAVE_CONFIG_H 12 # include "config.h" 13 #endif 12 14 13 15 #include <unistd.h> … … 182 184 } 183 185 184 char cur_user_name[20]={ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};186 static char cur_user_name[20] = { 0 }; 185 187 186 188 char const *get_login() 187 189 { 188 if (cur_user_name[0])190 if (cur_user_name[0]) 189 191 return cur_user_name; 190 else 191 return(getlogin() ? getlogin() : "unknown"); 192 193 #if defined __CELLOS_LV2__ 194 /* FIXME: retrieve login name */ 195 return "Player"; 196 #else 197 char const *login = getlogin(); 198 return login ? login : "unknown"; 199 #endif 192 200 } 193 201 194 202 void set_login(char const *name) 195 { strncpy(cur_user_name,name,20); } 203 { 204 strncpy(cur_user_name, name, 20); 205 } 196 206 197 207 view::view(game_object *Focus, view *Next, int number) … … 384 394 } 385 395 396 #if !defined __CELLOS_LV2__ 386 397 if( view_changed() ) 387 398 { … … 432 443 base->packet.write_uint16((uint16_t)((int16_t)sug_px)); 433 444 base->packet.write_uint16((uint16_t)((int16_t)sug_py)); 445 #endif 434 446 } 435 447 … … 482 494 int view::process_input(char cmd, uint8_t *&pk) // return 0 if something went wrong 483 495 { 496 #if !defined __CELLOS_LV2__ 484 497 switch (cmd) 485 498 { … … 553 566 case SCMD_EXT_KEYRELEASE : set_key_down(*(pk++)+256,0); break; 554 567 } 568 #endif 555 569 return 1; 556 570 } … … 558 572 int view::local_player() 559 573 { 574 #if defined __CELLOS_LV2__ 575 return 1; 576 #else 560 577 return player_number==client_number(); 578 #endif 561 579 } 562 580 … … 1160 1178 void process_packet_commands(uint8_t *pk, int size) 1161 1179 { 1180 #if !defined __CELLOS_LV2__ 1162 1181 int32_t sync_uint16=-1; 1163 1182 … … 1259 1278 } 1260 1279 } while (cmd!=SCMD_END_OF_PACKET); 1280 #endif 1261 1281 } 1262 1282 -
abuse/trunk/src/view.h
r494 r555 5 5 * 6 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com or8 * Jonathan Clark .7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 9 */ 10 10 … … 138 138 int total_view_vars(); 139 139 char const *get_view_var_name(int num); 140 u short make_sync();140 uint16_t make_sync(); 141 141 142 142 #endif
Note: See TracChangeset
for help on using the changeset viewer.