~ubuntu-branches/ubuntu/maverick/crossfire-client/maverick

« back to all changes in this revision

Viewing changes to common/client.c

  • Committer: Bazaar Package Importer
  • Author(s): Kari Pahula
  • Date: 2005-08-20 23:46:35 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050820234635-m3nwl2a0190jc15f
Tags: 1.8.0-1
* New upstream release (closes: #298438)
* New maintainer
* Set datadir to /usr/share/games and sounddir to
  /usr/share/games/crossfire/sounds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
char *rcsid_common_client_c =
2
 
    "$Id: client.c,v 1.23 2004/01/30 18:43:34 tchize Exp $";
 
2
    "$Id: client.c,v 1.26 2005/05/21 17:41:48 tchize Exp $";
3
3
/*
4
4
    Crossfire client, a client program for the crossfire program.
5
5
 
48
48
/* actually declare the globals */
49
49
 
50
50
char *server=SERVER,*client_libdir=NULL,*meta_server=META_SERVER;
51
 
char *image_file="";
 
51
char *image_file="", *sound_server="cfsndserv";
52
52
char *skill_names[MAX_SKILL];
53
53
 
54
54
int meta_port=META_PORT, want_skill_exp=0,
92
92
    { "delinv", DeleteInventory, ASCII },
93
93
 
94
94
    { "drawinfo", (CmdProc)DrawInfoCmd, ASCII },
 
95
    { "drawextinfo", (CmdProc)DrawExtInfoCmd, ASCII},
95
96
    { "stats", StatsCmd, STATS /* array of: int8, (int?s for that stat) */ },
96
97
 
97
98
    { "image", ImageCmd, MIXED /* int, int, PNG */ },
117
118
 
118
119
    { "query", (CmdProc)handle_query, ASCII},
119
120
    { "replyinfo", (CmdProc)ReplyInfoCmd, ASCII},
 
121
    { "ExtendedTextSet", (CmdProc)SinkCmd, NODATA},
120
122
};
121
123
 
122
124
#define NCOMMANDS ((int)(sizeof(commands)/sizeof(struct CmdMapping)))
312
314
        cs_print_string(csocket.fd,"setup extendedMapInfos 1");
313
315
        /*will handle all special infos requested when setup answer this command*/
314
316
    }
 
317
    cs_print_string(csocket.fd,"setup extendedTextInfos 1");
315
318
 
316
319
    /* If the server will answer the requestinfo for image_info and image_data,
317
320
     * send it and wait for the response.