Commit graph

47 commits

Author SHA1 Message Date
ehouse
6dc75914a6 turn stringFromStream into macro to aid logging for leak detection. Debug builds only effected. 2007-03-18 23:31:51 +00:00
ehouse
21e5e3ad23 Fix bug: scoreboard doesn't reflect connected state until some other
event causes update.  Fix by calling turnChangeListener any time turn
changes, including on initial set.
2007-02-27 02:48:51 +00:00
ehouse
2fe75a19a2 add const to a bunch of char* decls in APIs and variables; no code change 2007-02-03 17:54:20 +00:00
ehouse
bcac22bf9b Refactor to not return from middle of function. No behavior change. 2006-11-11 22:38:20 +00:00
ehouse
a97631b7ca Fix opening games and messages saved by last shipping version on Palm
by checking version and loading new fields conditionally.  (Not yet
tested for current wince version.)
2006-10-05 01:17:03 +00:00
ehouse
f5f715136b When a client registering n players with server, send the first n,
ignoring local flag which nwgamest doesn't set in client case.  When
resetting, destroy any engine allocated: plugs new leak.
2006-09-23 15:15:57 +00:00
ehouse
fab25fc820 do a better job of rejecting messages that have strayed in from a
different game; strutils syntax changes.
2006-09-15 07:34:39 +00:00
ehouse
5568d8fdca Check state before accepting post-connection messages; and always set
state when completing connection process.
2006-09-10 18:58:10 +00:00
ehouse
4322fd2820 when logging state transitions, don't unless there's a change 2006-09-02 05:29:59 +00:00
ehouse
f561989644 Set -Wunused-parameter for those versions of gcc that support it, and
deal with the output by removing params where possible and elsewhere
by adding XP_UNUSED macro wrapping __attribute__((unused)).  There
should be NO change in function in spite of the large number of files.
2006-08-16 13:44:44 +00:00
ehouse
633d9eef55 Get rid of hard-coded tile number limit in server_formatRemainingTiles 2006-05-23 01:52:20 +00:00
ehouse
033a19e032 Increase size of buffer used to accumulate letters for "tiles left"
dialog.  French has 15 "E"s, and the old buffer size allowed an
overflow (crash) when at least 13 of any letter were left.
2006-05-21 01:54:48 +00:00
ehouse
4e2b080be5 Add, and use, stream_putString. Saves 500 bytes on win32. 2006-04-25 13:31:15 +00:00
ehouse
942979ddd0 fix b5 crasher: check for stream equivalence with the older version
now that current version's been upped.  Rename old version to better
indicate when it was current.
2006-03-04 06:12:38 +00:00
ehouse
dcd31cd092 update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
ehouse
73170b1254 fix streaming so four devices can be in game. 2005-10-01 15:51:14 +00:00
ehouse
56accaaad5 dict_tilesToString sig change 2005-07-08 03:02:31 +00:00
ehouse
3296642486 casts to stop compiler warnings 2005-05-29 19:29:33 +00:00
ehouse
99f2804141 don't instantiate comms unless it'll be used. Internally it has no
idea it's not supposed to connect to relay otherwise.
2005-03-25 03:11:54 +00:00
ehouse
3ee16b6cd8 fix to build in standalone case 2005-03-20 19:43:00 +00:00
ehouse
4d454a8fff remove gross connectRelay hack. There's now a wrapping protocol that
talks to the relay entirely inside comms.c.
2005-03-19 21:48:47 +00:00
ehouse
cb674f16ac fix problems with clients in networked games making a move after the
game should end: check number of passes and that all players still
have tiles before running robot.
2005-03-15 15:18:58 +00:00
ehouse
6b7e2a9d53 HACK: server must ping relay or it can't be contacted 2005-03-06 17:51:18 +00:00
ehouse
c0f3adcfc4 cleanup; add debugging info for state changes 2005-03-06 17:49:37 +00:00
ehouse
a8f59730ba use dict_getShortName 2004-12-18 01:06:47 +00:00
ehouse
6852c51b70 Don't use Palm APIs in common code! 2004-11-09 02:03:28 +00:00
ehouse
800e749ac2 server_formatRemainingTiles and server_formatDictCounts 2004-11-06 02:46:08 +00:00
ehouse
bba0109f7f fix endienness problem for game id 2004-09-30 13:43:07 +00:00
ehouse
37f889703a remove dead code 2004-07-20 15:13:54 +00:00
ehouse
3608ee29a8 make < 80 columns 2004-07-10 22:56:20 +00:00
ehouse
4aee758a5c output the right string 2004-07-10 14:17:07 +00:00
ehouse
afa67f1a3c cleanup for no hintlimit feature case 2004-06-27 04:35:42 +00:00
ehouse
b084fa57c8 version now part of stream 2004-06-24 05:19:31 +00:00
ehouse
35ab9b34fe Change engine to, when given a rect that's a subset of the board,
constrain the search for moves to those that involve filling only
tiles within the rect -- while still using the rest of the board as
context for the moves.  Robot moves use the whole board.
2004-06-15 01:58:09 +00:00
ehouse
d0e11a6080 move undoing-assign warning here 2004-05-15 16:05:14 +00:00
ehouse
140f6aaf53 Allow deletion of picked tiles during face-up picking. 2004-05-14 08:57:38 +00:00
ehouse
b0d8d0baec guard server_do against reentrance 2004-02-18 04:28:32 +00:00
ehouse
5528dc305f fix compiler warning 2004-01-29 05:07:10 +00:00
ehouse
aaaf6489c8 Swedish dict has 0-count tiles that are available only for blanks.
Don't print these with counts/values.
2003-12-13 06:39:35 +00:00
ehouse
7feb202240 fix compiler warning 2003-11-30 19:11:12 +00:00
ehouse
ba39feaeca pass current tray into util_userPickTile, removing to-be-traded tiles
first.
2003-11-30 18:53:51 +00:00
ehouse
712cb0b50d robots can be given picked tiles too 2003-11-19 04:49:30 +00:00
ehouse
d326b6c8c5 Add vars to support turning on/off picking tiles 2003-11-19 04:06:32 +00:00
ehouse
e7a6243ba1 don't let pick robot tiles 2003-11-18 03:39:43 +00:00
ehouse
898338821b when picking, deal with not having enough tiles 2003-11-16 19:25:53 +00:00
ehouse
a403bb5de4 add option for user to pick tiles from pool. 2003-11-16 17:12:54 +00:00
ehouse
6a57cef012 first checkin 2003-11-01 05:35:29 +00:00