ehouse
73c32f0441
New stream version makes standalone and multi-device build formats the
...
same so new Wince can open files saved by current version. Tweaks to
build with relay and heartbeat turned on.
2009-01-03 23:54:25 +00:00
ehouse
e35a0c5e79
mark debug-only formals and wrap in #defines to fix compile-time
...
warnings of clean wince build.
2008-10-11 17:58:43 +00:00
ehouse
8c6c177c99
flag unusued param to fix compile error; move code used only in
...
multi-device games inside ifdefs.
2008-10-11 17:30:35 +00:00
ehouse
e399a7b755
Quiet over-enthusiastic logging of state transitions.
2008-07-18 09:06:09 +00:00
ehouse
e60d338488
Remove all tabs. No code changes.
2008-05-31 03:26:16 +00:00
ehouse
a05f869472
Fix to compile and run standalone
2008-01-19 16:04:48 +00:00
ehouse
bf5a1f1487
Log unusual case.
2008-01-07 01:19:47 +00:00
ehouse
d658c29c88
test for duplicate initial client message and if so drop it; add const keyword; add assertion in addr comparion in attempt to learn why duplicates are getting through.
2007-12-31 20:00:13 +00:00
ehouse
1872928530
Don't end game when player has no tiles left in tray but still
...
tentative tiles on board.
2007-12-14 13:25:40 +00:00
ehouse
036294a42e
Comments only.
2007-12-05 06:31:30 +00:00
ehouse
bd1222f2dc
Fix bug showing remote/robot moves only on host to include client too.
2007-12-02 22:07:24 +00:00
ehouse
b527110379
replace all __FUNCTION__ with __func__
2007-12-02 19:13:25 +00:00
ehouse
e891a26756
substitute macro for common sizeof(x)/sizeof(x[0]) pattern; no generated code change
2007-05-26 14:03:07 +00:00
ehouse
69912147de
When showing cell values, also show tile values if the don't-show tile values preference is set.
2007-04-06 01:41:16 +00:00
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