ca517d5a44
(pathcost): Fix the previous rev.
2005-09-25 16:03:22 +00:00
9731c24676
(deli): Diagnose invalid direction.
2005-09-25 10:05:39 +00:00
f38868d00e
(retreat_ship1, retreat_land1): Used to accept DIR_VIEW, which
...
happened do do nothing. Ignoring it like other invalid directions is
clearer.
2005-09-25 10:05:09 +00:00
1fe759dc1e
(marc, navi, retreat_ship1, retreat_land1): Treat any negative value
...
of chkdir() as failure, not just -1.
2005-09-25 10:00:43 +00:00
dfa56cb0ef
(diridx): New. Use instead of chkdir() where direction characters
...
must be valid. Oopses on bad direction characters.
(pathtoxy, ac_encounter): Bad direction characters used to lead to bad
array subscript and potential disaster.
(pathrange, path): Stop on DIR_STOP as well as on bad direction
characters. This is just for consistency with other code; DIR_STOP
should occur only last in a path here.
(sail_nav_fleet, nav_ship): No change except for the oops.
2005-09-25 09:49:36 +00:00
a88f12017e
(dirindex): Narrow member type to signed char to save cache.
...
(pathcost): Catch bad direction characters (should not happen).
2005-09-25 09:15:27 +00:00
6bfdc38df1
(SELL_NOT_DELIV, getdir, chkpath): Unused, remove.
2005-09-25 09:07:31 +00:00
Ron Koenderink
6304f3b482
(doexecute) [_WIN32]: Open the exec file in text mode.
...
The exec file contains the user commands created by text editor.
2005-09-24 13:34:39 +00:00
1580b1f734
(listen_addr): New econfig key.
...
(player_init): Implement it.
(player_init): Support service name in econfig key loginport. Service
empire no longer takes precedence over econfig. Closes #797096 .
2005-09-23 18:41:24 +00:00
d253e1266f
(hostaddr, hostconnect): Leave printing messages to caller.
...
(main): Clarify messages.
(hostport) [_WIN32]: Remove useless conditional code.
(main): Fall back to compiled-in host only if environment doesn't
supply one, not if it can't be resolved. Same for port.
2005-09-23 17:55:24 +00:00
5357aa15b9
(deli): Break the loop if player->aborted. Without that, it can
...
prompt for more input, violating the client protocol.
2005-09-23 17:37:28 +00:00
fee8ac9d8f
(prmptrd, uprmptrd): Should not be called while player->aborted. Check.
2005-09-23 17:35:14 +00:00
Ron Koenderink
5100e522fe
Change info pages to reflect the code change that sets the build reaction
...
radius to zero for land-units.
2005-09-20 00:00:23 +00:00
3e01ab0a1d
(upd_ship): Limit oil production to what's actually in the ground.
2005-09-18 12:17:18 +00:00
57332088a5
(io_output): Remove a redundant check.
2005-08-30 18:27:49 +00:00
681a803ef6
(move): test command checked start sector for space and some other
...
things instead of end sector.
(move): test command now skips code dealing with return of goods to
start sector.
(want_to_abandon): Simplify.
2005-08-30 18:26:58 +00:00
a508a4c6e7
(do_conv): Use maximum population instead of 999 to limit number of
...
new uw.
2005-08-30 17:49:43 +00:00
41c67326bb
(shoo): Remove the arbitrary limit of 999 people to be shot.
2005-08-30 17:47:40 +00:00
4474c7b5c1
(ltend): Fix printing of land unit in diagnostic message.
2005-08-30 17:38:27 +00:00
ff0d9dede6
(nbomb): Rev. 1.17 made a questionable initializer incorrect, and thus
...
broke pin-bombing for hosts where sizeof(i_type) != sizeof(int). Fix.
2005-08-30 17:27:37 +00:00
Ron Koenderink
b8bb2ffa3f
(nstr_resolve_id): Fix spelling mistake.
...
unkown -> unknown
2005-08-25 00:34:55 +00:00
Marc Olzheim
84bc824f65
Change 0 to NULL for pointer initializations. No functional changes.
2005-08-22 18:52:43 +00:00
Ron Koenderink
a7fa7dee30
(io_output_all,update_main,update_wait): Do not block on writing when
...
aborting commands for an update. Move update_pending to the start of
the update sequence where the commands are aborted.
2005-08-21 17:17:38 +00:00
Ron Koenderink
ef0dbf6790
(force): Change to create update thread instead of calling
...
empth_sleep() as the empth_sleep() can not be aborted for an update.
(update_force): New.
2005-08-20 19:16:56 +00:00
Ron Koenderink
22456c4965
[_WIN32]: Use pconfig.obj instead of pconfig.o for ntpconfig:
2005-08-13 20:18:37 +00:00
Marc Olzheim
76fb0253d6
Update for src/lib/subs/attsub.c:1.28 and src/lib/update/revolt.c:1.16
2005-08-11 09:29:10 +00:00
Marc Olzheim
ea056014a5
Update for src/lib/subs/pr.c:1.27
2005-08-11 09:28:20 +00:00
Ron Koenderink
ce11addeed
(empth_yield): Remove sleep(). Delay not necessary.
2005-08-01 03:08:16 +00:00
66e30e2c8e
Update to current output format.
2005-07-31 17:45:06 +00:00
9bf3b1b64a
(show_opts): New, factored out of vers(). Fix output punctuation.
...
(vers): Fix output punctuation and grammar.
2005-07-31 17:42:14 +00:00
9c3bb663c8
(wrgamesdef): Don't point to ftp.wolfpackempire.com, it does not work.
2005-07-31 17:40:06 +00:00
786b34c693
(SHIPNAMES, opt_SHIPNAMES, Options, carg, name, sorde, qorde)
...
(show_sail, shi, att_get_combat, pr_com, satdisp, satmap, prship):
Remove nooption SHIPNAMES.
2005-07-31 17:22:32 +00:00
df8845199e
(sorde): Output messed up for ships with sail path. Fix and
...
simplify. Remove inappropriate ship sanity check, should be done
elsewhere, and differently.
(qorde): Fix the previous rev.
2005-07-31 16:35:30 +00:00
4c37776458
(qorde): Output messed up for ships with sail path. Fix and
...
simplify. Remove inappropriate ship sanity check, should be done
elsewhere, and differently.
2005-07-31 16:19:03 +00:00
591c82bf7c
(checksect, give_back_cap, guerrilla): No longer change capital to
...
agribusiness. That was done when the occupier abandons the old-owners
capital or it revolts, to prevent players from sacking the same
capital many timers. The server has a much better way to prevent that
since 4.2.7, so this weird hack is no longer useful. Thanks to Pat
Loney for pointing this out.
2005-07-31 13:55:50 +00:00
Ron Koenderink
fd81bf86eb
(meltitems): Remove unnecessary checks.
2005-07-25 13:12:22 +00:00
Ron Koenderink
7920252986
(meltitems): Move melt_item_denom into the ichr structure.
2005-07-24 22:20:05 +00:00
Ron Koenderink
193b7fdbad
(prmptrd,uprmptrd): Remove unused variable cp.
2005-07-24 17:26:21 +00:00
Ron Koenderink
c0a43eb872
(getcommand): Remove unused variable i
2005-07-24 17:24:21 +00:00
2248c07024
(lwpReschedule): Internal function, move declaration from lwp.h to
...
lwpint.h.
2005-07-24 10:00:52 +00:00
4e9066c894
(empth_yield) [_EMPTH_LWP]: Blocked the current thread forever; fix.
2005-07-24 09:57:39 +00:00
Ron Koenderink
02693bb59b
(prompt,dopipe) [_WIN32]: Enable the pipe capability.
2005-07-23 21:44:00 +00:00
380b063f9c
Remove some redundant parenthesis; no functional change.
2005-07-23 19:48:35 +00:00
4861f837fb
(player_init) [LISTENMAXCONN]: Comment seems to claim Linux doesn't
...
have SOMAXCONN, but has LISTENMAXCONN. In fact, it has SOMAXCONN, and
LISTENMAXCONN doesn't exist anywhere in /usr/include or the Internet.
Remove the special case.
2005-07-23 19:12:23 +00:00
c9cc4e3cab
(rpt): Restore tabular formatting destroyed by emp-indent.
2005-07-23 19:09:12 +00:00
c41c45be61
Delete some code that has been disabled out for ages and looks
...
useless or wrong.
2005-07-23 18:35:07 +00:00
4bfb66a255
(empth_create): Adjust stack size to at least PTHREAD_STACK_MIN, not
...
PTHREAD_STACK_MIN + 1.
2005-07-23 17:50:31 +00:00
565faa8891
Cleanup, no functional change.
...
(empth_t, empth_sem_t): Define as incomplete types in empthread.h,
complete in pthread.c, to avoid exposing implementation details.
(EMPTH_KILLED): Move from empthread.h to pthread.c.
2005-07-23 17:40:49 +00:00
59c15ea9d4
[_DECTHREADS_] Drop support for DECthreads d4, a.k.a. DCE threads,
...
which are obsolete since at least 1997.
(empth_terminate, empth_wakeup) [__ppc__]: Ancient versions of OS X
lacked pthread_kill(). As a work-around, its use was disabled here
for all versions of OS X. The work-around could lead to hangs.
Remove it and drop support for ancient versions of OS X.
(empth_create) [__linux__]: Linux has supported thread attribute
stacksize for ages. Remove the special case.
(_MIT_POSIX_THREADS): Unused, remove.
2005-07-23 17:26:20 +00:00
bf61ce9f38
(empth_setctx): Unused, remove.
2005-07-23 16:55:31 +00:00