ChangeLog 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923
  1. * TODO: see below, and in the "TODO" file. Enjoy!
  2. Mon Dec 22 20:29:16 1997 <bk@gamers.org>
  3. * CVS logs and other obsolete stuff removed. Anybody
  4. who wants to keep some revision control now has a
  5. clean slate to start with.
  6. Mon Dec 22 19:53:34 1997 <bk@gamers.org>
  7. * i_sound.c: enabled SNDSERV, as SNDINTR for
  8. some reason just gives ghastly results e.g.
  9. on E4M2. Frankly, I am at a loss. SNDSERV is
  10. now default, until the internal sound driver
  11. is a bit more reliable.
  12. Note that the current redundancy means that
  13. changes like the one below will have to
  14. be propagated manually to the soundserver
  15. sources.
  16. * m_menu.c: the 4th episode is now removed with
  17. the original doom.wad. You need to rename the
  18. Ultimate DOOM/Special Edition retail IWAD to
  19. doomu.wad now, or you won't see the 4th episode
  20. in the menu. The compile time SPECIAL define
  21. is thus gone.
  22. Mon Dec 22 17:08:33 1997 <bk@gamers.org>
  23. * v_video.c (V_DrawPatch): another last minute hack.
  24. While shareware, retail, commercial, and plutonia
  25. (being a full DOOM2 IWAD) seem to work okay now,
  26. TNT gives an error on finishing the first mission:
  27. "Patch at -35, -5 exceeds LFB".
  28. I changed the error abort into a simple return,
  29. thus the patch is ignored. The intermission screen
  30. seems to come up okay.
  31. * TODO: check which patch, and whether it is an IWAD
  32. problem.
  33. * i_sound.c: the sound table is hardwired in
  34. sounds.h/sounds.c. As our current crude
  35. sound handling simply loads *all* sounds at
  36. startup, we are going to miss some with DOOM1
  37. WAD files. I could skip them, but decided to
  38. load a placeholder instead (dspistol). It might
  39. be good to use a distinct default sound for
  40. WAD debug purposes. A zero length sound lump
  41. would work, but would not be noticeable.
  42. Anyway, shareware and retail work now.
  43. * TODO: implement proper handling for missing
  44. lumps, sound and otherwise.
  45. Perhaps move sound table into WAD?
  46. * g_game.c (G_DoPlayDemo): finally removed the
  47. annoying "Demo is from a different game version"
  48. abort. It now simply declines to playback the
  49. demo, and waits for user input on some
  50. do_nothing screen.
  51. * doomdef.h&Cie.: Lesson of the day - do not
  52. replace a bunch of booleans with an enum and
  53. use the same identifiers. Point in case:
  54. "if ( commercial )" will not give an error,
  55. and will always be true as long as the enum
  56. value is greater than zero.
  57. I found that the DOOM2 vs. DOOM differences
  58. are everywhere (weapons, monsters, doors).
  59. Number of episodes varies from shareware/commercial
  60. to registered to retail, while commercial has
  61. a unique set (two of them, counting the german
  62. edition) of maps in one episode. Plus, TNT and
  63. Plutonia add some TITLE strings to the mixture.
  64. Well, Plutonia and TNT are treated as DOOM2 for
  65. now, so you will miss the startup message.
  66. * wi_stuff.h (NUMEPISODES): removed SPECIAL switch.
  67. It is no 4 times 9 for wi_stuff.c internal
  68. static arrays - doesn't matter.
  69. * TODO: unified handling with DOOM 2 - dynamic
  70. allocation of arrays.
  71. * i_sound.c (I_UpdateSound): okay, I separated
  72. the mixing, now done synchonously, along with
  73. a flag signalling the timer that the mixing buffer
  74. has been updated. The handler is now very short,
  75. and I tried several intervals down to 50usecs,
  76. w/o complaints. Now the man page says:
  77. "system timer resolution currently 10ms". Odd.
  78. Anyway, while the double shotgun/plasma rapid
  79. fire problem seems to be a bit less disturbing
  80. at higher refresh, it's still there. I set the
  81. interval to 500usec, which is sufficient for
  82. avoiding any buffer update misses.
  83. Conclusion after just two days of experimentation:
  84. yep, sound driver code isn't fun at all.
  85. As for the bug - well, Dave Taylor suggested
  86. close distance getting into a divide-by-near-zero
  87. situation, screwing up the volume. I can't figure
  88. why latency of an external sound driver or screen
  89. size affect this, but I am running out of ideas.
  90. * i_sound.c:
  91. Some more experimentation with the timer driven
  92. sound. It doesn't work well using an intervall
  93. of less then 30 msecs - there will be artifacts
  94. with say 50 msecs. This is pretty obvious with
  95. a target frame rate of at least 30fps, methinks.
  96. Using the REAL/SIGALRM timer with 30msec gets
  97. rid of the artifacts, it seems - at the expense
  98. of slowing down things on a P133 to a noticeable
  99. jerkiness. Bah.
  100. Mon Dec 22 00:36:54 1997 <bk@gamers.org>
  101. * info.c: and i_video.c and i_sound.c - don't ask
  102. me why some Linux header files are different with
  103. gcc vs. g++, or what the complaint about the g++
  104. complaint info.c state table is all about:
  105. "initializer element for `states[..].action.acp1'
  106. is not constant"
  107. Undid some changes, compiled with gcc, playtested,
  108. seems okay. Done for today... yesterday.
  109. * i_net.c (ntohl): okay, htons/htonl, ntohs,ntohl
  110. are back to haunt me. Copied the macros that
  111. on my box aren't used for whatever reason directly
  112. into the source. Got rid of all other multiple and
  113. undefined references. CC=g++ now compiles (still
  114. many warnings) and links, but the binary dumps a
  115. core after Init PlayLoop. So be it.
  116. Sun Dec 21 12:38:08 1997 <bk@gamers.org>
  117. * p_enemy.c (P_NewChaseDir): changed tdir to int,
  118. removed the LUTs - spurious locks were due to
  119. endless loops created by boneheaded predecessor
  120. map. Has to be a better way to do enum dirtype_t
  121. anyway. Problem seems to be fixed.
  122. * CC=gcc again, this time loads of #includes to
  123. fix "implicit declarations, and one or two
  124. unused variables. DOOM now compiles without
  125. any -Wall warnings left, as C.
  126. * Bug: compiled the reworked code with gcc. Within a
  127. solid while of testing and blasting away, it
  128. locked once. Got a core, which gdb doesn't grok.
  129. Bah.
  130. * TODO: okay, linkage of g++ build modules give loads
  131. of errors, because we have many implicits, plus
  132. missing #pragma implementation causing multiple
  133. definitions. Yet, this is the very first time DOOM
  134. was compiled as C++ without a parsing error. So there.
  135. * sounds.c: included doomtype.h and removed yet another
  136. enum { false, true } definition.
  137. * p_saveg.c (misc): several.
  138. * p_mobj.c (P_SpawnMobj): (actionf_p1)P_MobjThinker
  139. * p_spec.c (EV_DoDonut): (action_p1) T_MoveFloor (twice).
  140. * p_plats.c (EV_DoPlat): (actionf_p1) T_PlatRaise.
  141. * p_plats.c (EV_StopPlat): (actionf_v)NULL.
  142. * p_plats.c (P_ActivateInStasis): same
  143. * p_lights.c (P_SpawnGlowingLight): (actionf_p1) T_Glow.
  144. * p_lights.c (P_SpawnStrobeFlash): (actionf_p1) T_StrobeFlash.
  145. * p_lights.c (P_SpawnLightFlash): (actionf_p1) T_LightFlash.
  146. * p_lights.c (P_SpawnFireFlicker): (actionf_p1) T_FireFlicker.
  147. * p_floor.c (EV_DoFloor): (actionf_p1) T_MoveFloor.
  148. * p_floor.c (EV_BuildStairs): same (twice).
  149. * p_doors.c (EV_VerticalDoor): (actionf_p1)T_VerticalDoor.
  150. * p_doors.c (P_SpawnDoorCloseIn30): same
  151. * p_doors.c (P_SpawnDoorRaiseIn5Mins): same
  152. * p_doors.c (EV_DoDoor): same
  153. * p_ceilng.c (EV_CeilingCrushStop): (actionf_v)NULL.
  154. * p_ceilng.c (EV_DoCeiling): (actionf_p1)T_MoveCeiling.
  155. * p_ceilng.c (P_ActivateInStasisCeiling): same.
  156. These gave g++ errors, but have been ignored by gcc.
  157. * r_data.c (R_PrecacheLevel): (actionf_p1)P_MobjThinker.
  158. * p_saveg.c: conversions (actionf_p1)T_Whatever.
  159. * p_tick.c: cast (actionf_v)(-1).
  160. * p_telept.c: yet another (actionf_p1)P_MobjThinker.
  161. * p_mobj.c (P_MobjThinker): cast (actionf_v)(-1).
  162. * TODO: decent NOP/NULL/Nil function pointer.
  163. I'd introduce a global A_NOP() function that
  164. chokes up an error message.
  165. Why -1 instead of NULL?
  166. * p_enemy.c: conversions (actionf_p1)P_MobjThinker.
  167. * d_think.h/info.h: think_t is essentially
  168. the same action function pointer stuff.
  169. I moved the definitions from info.h to
  170. d_think.h, and aliased them with a typedef.
  171. Now more changes needed.
  172. * p_enemy.c (successor, predecessor): new LUT,
  173. to provide increments/decrements for enum
  174. dirtype_t, as g++ complaints:
  175. "no post-increment/decrement operator for type"
  176. * Makefile (CC): okay, tried "g++" once more.
  177. A few errors (above). Plus shitloads of warnings
  178. (obviously, better "unused" checking with C++,
  179. lots of the usual int2enum suspects, implicit
  180. declarations, the works).
  181. * p_mobj.c: action.acp1 used accordingly.
  182. * p_pspr.c: action.acp2 used accordingly.
  183. * TODO: info.c:144 warning
  184. "missing braces around initializer for `states[0].action'"
  185. * info.h/info.c: some experimental stuff on
  186. action function pointers.
  187. * TODO: still some sound glitches at startup.
  188. * i_sound.c: few more cleanups. Made mixing use
  189. channel loop instead of unroll, set mixbuffer
  190. to zero ot start.
  191. Removed some more DOS leftovers (8bit),
  192. kept some as comment.
  193. * hu_stuff.c (HU_Start):
  194. More gamemode changes. As in d_main.c, I
  195. decided to use DOOM2 as default whenever
  196. one needed - it was sold most, and had the
  197. superset of items, enemies and monsters.
  198. * TODO: the handling of WAD specific messages
  199. like HU_TITLE, HU_TITLE2, HU_TITLEP etc.
  200. should definitely be removed.
  201. * d_main.c (CheckBetaTest):
  202. Removed outdated, DOS specific BETATEST stuff.
  203. d_main.c (IdentifyVersion):
  204. Numerous changes to gamemode handling.
  205. * TODO: currently, french language is enabled by
  206. detecting an doom2f.wad - yet it needs FRENCH
  207. define at compile time. I removed most language
  208. stuff, and propose handling that at runtime,
  209. using a switch in the config file. Well,
  210. mission specific texts won't work outside the
  211. WAD anyway.
  212. * TODO: along the same lines: I suggest removing
  213. the misc. devparm switches as well - lots of
  214. redundancy not needed anymore.
  215. * Makefile: finally added a doomstat.c for all
  216. the global state variables listing internal
  217. engine configuration. Right now, these are
  218. scattered everywhere. Declaration to be found
  219. in doomstat.h header.
  220. * f_finale.c (F_StartFinale):
  221. Reworked the entire finale handling based on
  222. game mode enum.
  223. * doomstat.h:
  224. Global variables for game mode and language.
  225. Removed old booleans.
  226. * doomdef.h: GameMode_t and Language_t enum added.
  227. Boolean for language was kinda limiting to 2
  228. alternatives (french, english), and five boolean
  229. plus #define SPECIAL for game version is just ugly.
  230. * wi_stuff.h: SPECIAL switch compiles two
  231. different EXE's, one for 3 episodes of 9 maps
  232. each (DOOM 1 registered), one for 4 episodes
  233. of 9 maps each (DOOM 1 retail/FinalDOOM).
  234. Implicitely, the DOOM2 config (one episode,
  235. 34 missions) is handled. How is the german
  236. edition (32 missions only) done?
  237. Frankly, this is a mess. The problem is that
  238. intermission (animated as in DOOM 1, simple
  239. backdrop as in DOOM2) as well as certain
  240. items (double shotgun) as well as certain
  241. rendering stuff (sky texture) depend on this.
  242. Plus, it ties into runtime flags as "commercial"
  243. as well. Yuck.
  244. Each change will change the game. Postponed.
  245. * d_net.c,m_misc.c: removed last two NeXT remains.
  246. * d_englsh.h,d_french.h,d_main.c,m_misc.c,r_draw.c,v_video.c:
  247. more WATCOM remains removed. Kept some stuff that
  248. handeld the blocky mode/detailshift in DOS, which
  249. is n.a. in Linux - but probably not worth fixing.
  250. Sat Dec 20 15:16:51 1997 <bk@gamers.org>
  251. * Bug: core dump when using doom.wad or doom1.wad
  252. without a "-file UNUSED/doom2.wad". Version
  253. dependend handling of stuff (double shotgun)
  254. comes to mind.
  255. * doomdef.h:
  256. SNDSERV enables external sound server
  257. support. SNDINTR enables internal sound
  258. output with timer (asynchronous). Default
  259. is internal, synchronous.
  260. * i_sound.c (I_HandleSoundTimer):
  261. Okay, the plasma/double shotgun sound bug
  262. (crapyy sund when firing nose-to-wall) is
  263. obviously a problem with blocking at
  264. refresh - smaller screen size makes it go
  265. away.
  266. I won't do threads w/o a proper gdb, and
  267. I can't do whatever Dave Taylor did with
  268. LinuxQuake w/o the sources, thus I broke
  269. down and implemented a timer based solution.
  270. Seems to work fine, given the fact that
  271. this is the first time ever I implemented
  272. sound handling.
  273. Fri Dec 19 10:02:48 1997 <bk@gamers.org>
  274. * m_menu.c/i_sound.c/s_sound.c:
  275. Removed a few more inconsistencies due to
  276. old internal sound handling (DOS),
  277. external (Linux sndserver), and
  278. new internal (the unfinished merge of
  279. both the former).
  280. The Options/Sound/Music volume menu is
  281. accessible now. It was due to an internal
  282. scaling of the menu (effective range 0-15),
  283. up to 0..120, by multiply with 8 scattered
  284. all over the place, that we got a
  285. v_video.c: I_Error ("Bad V_DrawPatch")
  286. Now I am using the menu resolution
  287. everywhere, and scaling should only be done
  288. in the actual mixing/output.
  289. * OK, obviously this hasn't been updated in months.
  290. This is because: a) most of the time nothing
  291. happened, and b) when something got done, it was
  292. too much to keep track of it by CVS and/or ChangeLog.
  293. Basically, what happened in the meantime is that
  294. I did not find a publisher who believed that the book
  295. sales would be worth doing it. Within the limited
  296. amount of time that I could dedicate to a project
  297. that will not generate any revenue whatsoever,
  298. I spent some time on cleaning up the Linux code
  299. base which works, essentially. I might or might not
  300. be able to participate in a Mesa+Voodoo+Glide based
  301. GLDOOM port for Linux. I won't waste a minute on
  302. Win32 without getting paid for it.
  303. Because of the legal issues involved with the
  304. DMX sound library id licensed for DOS DOOM, Linuxdoom
  305. is the only code base that has sound support at all.
  306. Other UNIX ports (SGI, Sun) could probably be revived
  307. and integrated w/o too many problems. There is no
  308. Win32 port - I never had access to WinDOOM or
  309. Jim Dose's GLDOOM sources. There is no Linux
  310. OpenGL (read: Mesa) support yet - that'd involve
  311. internal changes which will best be done after a
  312. public source release.
  313. John Carmack opted for a release of the Linux code.
  314. I have removed all DMX references I could get a
  315. hold of, but preserved some of the original
  316. sound handling within DOOM that interfaced
  317. with DMX. Linuxdoom (like previous UNIX ports)
  318. used a separate sound server binary. I did some
  319. work on putting the sound server module back into
  320. the engine. It works, but shutdown (pending sounds),
  321. and sound output parallel to refresh (blocking)
  322. is crappy, and there is a problem with double
  323. shotgun and plasma at close distance (as well as
  324. with lots of other noises going on). As the
  325. mixing code is identical to the separate
  326. soundserver, and as it doesn't seem to be a
  327. blocking issue, I am currently at a loss - I
  328. wonder whether the IPC communication with the
  329. soundserver process introduced a delay that
  330. changed behaviour, or whether I simply overlooked
  331. a bug. I am currently lacking the time to track
  332. this down, so I am keeping both internal and
  333. soundserver source.
  334. I did remove DOS and Watcom specifics. I did also
  335. remove the texture mapping and fixed point assembly.
  336. From my experience, it isn't worth the trouble
  337. to ue GCC inline assembler, as performance of
  338. the same loop written in C is perfectly sufficient.
  339. On demand I will put both assembly modules into some
  340. documentation, as they are probably of historic
  341. interest.
  342. There is no Sun DGA, Irix, or other non-Linux stuff
  343. in this code base (at least, not intentionally).
  344. They will be back when ports to other UNIX
  345. environments will be merged back (I can't do
  346. testing, and the modules were separate and not
  347. consistent, so I refrained from wasting time on
  348. this prior to a public release).
  349. While I made only minor changes to the actual code
  350. (some fixes, some cleaning up of SHM and audio),
  351. I did a huge amount of shuffling around. I
  352. introduced many more header files and modules,
  353. some of them laughably small (doing these changes
  354. is bound to screw up CVS, so no CVS record anymore
  355. for the time being). I would introduce even more
  356. separation if I had the time. Splitting the
  357. animation/AI/behaviour code that defines
  358. "DOOM - The Game" into a separate game.so (like
  359. Quake2 does) should definitely be done. Separating
  360. a ref_soft.so aka "DOOM - The Engine", and defining
  361. a clean interface prior to introducing a ref_gl.so
  362. is recommended as well.
  363. I am going to purge some more leftovers, remove
  364. the obsolete CVS history except for comments,
  365. and try to clean up the last "implicit declaration"
  366. and "unused variable" warnings. Except for enabling
  367. cheats in nightmare (to have more fun while testing),
  368. I did not change the game mechanics at all. I would
  369. strongly advise against doing so w/o the proper
  370. separations suggested above. I will not waste time
  371. on fixing detail and blocky mode, lack of resize,
  372. or other stuff that it better addressed by a proper
  373. GLDOOM port.
  374. Sat Aug 16 08:07:16 1997 <bk@hal.gamers.org>
  375. * p_pspr.c:
  376. Moved the sprite animation stuff from doomdef.h here.
  377. * info.h:
  378. Added #ifndef __INFO__ for multiple inclusion. I am
  379. not going to deal with multigen, or changing the
  380. original DOOM monster animation anyway.
  381. * p_spec.h/c:
  382. Moved anim_t etc., locally used only. There is
  383. another anim_t in wi_stuff.h/c, now local as well,
  384. so collisions on header inclusion should not occur.
  385. #include "doomdef.h"
  386. #include "doomstat.h"
  387. these should now be topmost includes.
  388. * doomstat.h, doomdef.h, wi_stuff.h, d_player.h:
  389. I moved wbstartstruct_t to d_player.h, and wminfo
  390. to doomstat.h. Basically, I will try to move all
  391. global state related stuff into doomstat.h, and
  392. all data structures defined for state variables
  393. into doomdef.h - this will be kinda greek tragedy,
  394. and never finished, but a body can try.
  395. * wi_stuff.h/c, wi_data.h:
  396. Removed wi_data.h, put all local stuff blah... see
  397. below.
  398. I have found several unused global variables,
  399. started outcommenting them with //U, will remove
  400. them later. It might be Watcom/PC stuff, or
  401. somebody put the actual numbers into the implementation
  402. instead of using STARDIST, ANIMPERIOD & Cie.
  403. * st_stuff.h/c: from doomdef.h, local stuff moved
  404. into st_stuff.c, etc.
  405. In the current revisions, I am tolerating warnings
  406. of the "implicit declaration" kind - the linker
  407. resolves the stuff, and it will be handy in
  408. unmangling the modules once the headers contain
  409. only the globally visible stuff.
  410. * am_map.h/c, am_data.h:
  411. Removed am_data.h, put all local stuff into
  412. am_map.c, moved globally needed headers from
  413. doomdef.h into am_map.h.
  414. * p_saveg.h, p_setup.h, p_tick.h:
  415. created, stuff from doomde.h moved there
  416. * d_main.c, d_net.c, doomdef.h:
  417. Decided to dump mprintf, as only needed for
  418. Watcom support which is not going to happen.
  419. * doomdef.h:
  420. Moved function prototypes to appropriate headers:
  421. d_main.h, d_net.h.
  422. Fri Aug 15 16:38:53 1997 <bk@hal.gamers.org>
  423. * doomstat.h:
  424. added a few more comments, regrouped some of the
  425. state variables.
  426. * doomdata.h: added a few more comments.
  427. Thu Aug 14 10:38:37 1997 <bk@hal.gamers.org>
  428. * g_game.c (G_DoLoadLevel):
  429. copied the skyflatnum determination here, from
  430. the R_InitSkyMap - once should be sufficient.
  431. * Makefile, r_sky.h/c:
  432. added r_sky module. The sky handling was scattered
  433. over r_bsp, r_main, r_plane, doomstat.h...
  434. * r_bsp.c, r_main.c, r_segs.c:
  435. Removed RD_* calls from R_debug.m, NeXT switches.
  436. * r_local.h:
  437. Removed the R_debug.m NeXT specific debugging
  438. code headers. Removed "drawbsp" flag from
  439. here, and r_main.c, too.
  440. * r_data.c:
  441. Started to remove NORMALUNIX switches, using
  442. LINUX instead. Basically, different UNIX
  443. platforms using the same code should simply
  444. be ANDed in the #ifdef switches.
  445. * r_draw.c:
  446. Removed some more, but not all WATCOMC support.
  447. There is an unresolved problem with the fuzzy
  448. blitting in the lowres (blocky) modes - either
  449. the "detailshift" flag triggered lowres mode
  450. will be removed, or the bug has to be fixed.
  451. * r_bsp.h, r_draw.h, r_things.h, r_data.h,
  452. r_segs.h, r_main.h, r_plane.h:
  453. Created from r_local.h.
  454. * Back to work.
  455. Till March 22nd, a lot of source shuffling and addition
  456. of new header files, separating stuff, and creating
  457. new, smaller modules. Some Watcom/PC/DMX/NeXT etc.
  458. related stuff got removed, but not all (yet). None of
  459. this ended up in the Log (sorry) or the revision control
  460. (CVS is not well suited while number of files and
  461. respective names change a lot, especially if stuff gets
  462. deleted and/or re-introduced).
  463. Major change: part of the sound code got copied from the
  464. separate Linux sndserver sources to the linuxdoom source.
  465. Re-integration and removal of sndserver pending.
  466. Nothing of importance happend since then (priorities).
  467. Mon Feb 3 16:41:05 1997 <bk@gamers.org ()>
  468. * m_misc.c:
  469. Created m_argv, m_random and m_bbox, kept remains in m_misc
  470. for the time being. Misc. files changed to include only
  471. necessary modules. Moved bbox definitions from doomdata.h.
  472. * m_menu.h:
  473. Created from doomdef.h. Misc. changes in dependend modules.
  474. I am not going to list every affected file from now on.
  475. See Log entries within each file.
  476. * dstrings.h:
  477. Now handles multi-language support and switches.
  478. So far, only english (default) and french are available.
  479. * d_englsh.h:
  480. Created from dstrings.h.
  481. * g_game.h:
  482. Created, from doomdef.h.
  483. * am_map.c, st_stuff.c, wi_stuff.c:
  484. * Makefile:
  485. Added m_cheat, removed dutils. Doubly linked list stuff unused.
  486. * m_cheat.h, m_cheat.c:
  487. Created, basci cheat string scrambling and check, from dutils.h
  488. and dutils.c.
  489. * doomdef.h
  490. Moved screen declaration to v_video.h.
  491. * dutils.h, dutils.c
  492. Remode code for f_wipe.h and f_wipe.c.
  493. * Makefile
  494. * d_main.c,
  495. Added f_wipe files.
  496. * f_wipe.h, f_wipe.c:
  497. Created, screen wipe/melt at mission begin, from dutils.h
  498. and dutils.c.
  499. * d_textur.h:
  500. Created from doomdata.h. Separates all the patch/texture
  501. defintions. Needed for v_video module.
  502. * r_local.h, wi_stuff.h, st_lib.h, hu_lib.h:
  503. * i_x.c, d_main.c, m_menu.c, m_misc.c:
  504. Added v_video.h.
  505. * v_video.h:
  506. Created. Using headers from doomdef.h. Forward of patch_t.
  507. Moved bool and byte to doomtype.h.
  508. Thu Jan 30 20:50:16 1997 <bk@gamers.org ()>
  509. * doomtype.h:
  510. Created, for fixed_t. Should add angle_t here, too.
  511. * tables.c:
  512. Added SlopeDiv from r_main.c, added all defines and typedefs
  513. related to basic trig table use here, removed it.
  514. Currently "tables.h" is included in doomdef.h and
  515. r_local.h, too. This is not too cleanly separated, but
  516. we have to start somewhere, right?
  517. * tables.h:
  518. Created from doomdef.h.
  519. Note that tables.c had fixed size tables, while doomdef.h
  520. calculated from the value of FINEANGLES. In addition,
  521. entries were given as either "int" or "fixed_t". Bad boys.
  522. * z_zone.c:
  523. * s_sound.c:
  524. * hu_stuff.c:
  525. * st_lib.c, st_stuff.c:
  526. * wi_stuff.c:
  527. * w_wad.c:
  528. * r_things.c, r_plane.c, r_draw.c, r_data.c:
  529. * p_tick.c, p_mobj.c, p_spec.c, p_setup.c, p_lights.c,
  530. p_plats.c, p_floor.c, p_doors.c, p_ceilng.c:
  531. * am_map.c:
  532. * m_misc.c, m_menu.c:
  533. * g_game.c:
  534. * d_main.c:
  535. * f_finale.c:
  536. Added #include "z_zone.h".
  537. * z_zone.h:
  538. Created, from stuff in doomdef.h
  539. * CVS checkin. Reformatting run, last one.
  540. Took a week to go through all the sources, w/o even
  541. looking to closely.
  542. * st_stuff.c (ST_Responder):
  543. Removed a first tiny bit of redundancy (NO_CLIP checks).
  544. Should remove idspispod completely, later.
  545. Wed Jan 29 19:53:43 1997 <bk@gamers.org ()>
  546. * Another one, while we are on it. All S (Sound) files.
  547. * CVS checkin. Reformatting run, all R (Refresh) files.
  548. * r_draw.c (R_DrawSpanLow):
  549. The non-Watcom, non-asm lowres mode was just a copy
  550. of the default mode. As detailshift was used to scale
  551. the image down, lowres mode just filled the left half
  552. of the buffer.
  553. * r_draw.c (R_DrawColumnLow):
  554. Tried the same hack for walls, horribly broken.
  555. Postponed.
  556. Tue Jan 28 19:32:48 1997 <bk@gamers.org ()>
  557. * CVS checkin. Another reformatting run. Did all P files.
  558. * p_spec.c: P_FindNextHighestFloor
  559. The number of adjoining sectors is limited to 20, because
  560. of a temporary LUT needed for determining lowest height
  561. in adjacent sectors. No overflow checking is done.
  562. Sun Jan 26 08:41:21 1997 <bk@gamers.org ()>
  563. * Another CVS checkin of a formatting run.
  564. D,F,G,HU,I,M have been changed.
  565. * Note: in initial and current release,
  566. linuxxdoom -3 -file plutonia.wad, idclev 12
  567. produces a Segmentation fault.
  568. Wed Jan 22 14:03:00 1997 <bk@gamers.org ()>
  569. * m_menu.c:
  570. initializer-string for array of chars is too long (skullName)
  571. warning: unused parameter `int choice' (a couple of times)
  572. * Attempt to compile as C++. Loads of warnings, a couple of errors.
  573. p_enemy.c (P_Move):
  574. r_things.c (R_ProjectSprite)
  575. `catch', `throw', and `try' are all C++ reserved words,
  576. thus changed "try" to "try_ok". Fixed.
  577. p_pspr.c: In function `void P_SetPsprite(struct player_s *, ... )':
  578. too many arguments to function
  579. No convenient fix - state->action is declared void action(),
  580. but called w/o, with one, or with two parameters.
  581. There are more like this. Going to be a tough one.
  582. Union of pointers?
  583. Postponed.
  584. r_plane.c: In function `void R_DrawPlanes()':
  585. s_sound.c: In function `int S_AdjustSoundParams(struct mobj_s *, .. )':
  586. p_map.c: In function `bool PIT_StompThing(struct mobj_s *)':
  587. p_maputl.c: In function `int P_AproxDistance(int, int)':
  588. r_main.c: In function `int R_PointToDist(int, int)':
  589. p_enemy.c: In function `void P_NewChaseDir(struct mobj_s *)':
  590. warning: implicit declaration of function `int abs(...)' <stdlib.h>
  591. Wed Jan 22 12:15:00 1997 <bk@gamers.org ()>
  592. * CVS checkin of purification run. Sources now compile
  593. without any "-Wall" warnings.
  594. * Note: with -file "tnt.wad", we get an "Error: Bad V_DrawPatch"
  595. abort each time we enter an exit. Invalid or missing
  596. intermission screen?
  597. * Makefile (CFLAGS): added -Wall, first purification run.
  598. d_main.c: In function `D_DoomMain':
  599. warning: implicit declaration of function `mkdir' <fcntl.h>
  600. i_unix.c: In function `I_StartSound':
  601. warning: control reaches end of non-void function
  602. i_unix.c: In function `I_InitNetwork':
  603. warning: implicit declaration of function `inet_addr' <arpa/inet.h>
  604. i_unix.c: At top level:
  605. warning: `endianness' defined but not used
  606. i_x.c: In function `I_Error':
  607. warning: unused variable `string'
  608. i_x.c: In function `I_GetEvent':
  609. warning: suggest parentheses around arithmetic in operand of |
  610. i_x.c: In function `I_FinishUpdate':
  611. warning: unused variable `bigscreen'
  612. i_x.c: In function `grabsharedmemory':
  613. warning: implicit declaration of function `getuid' <unistd.h>
  614. warning: unused variable `done'
  615. i_x.c: In function `I_InitGraphics':
  616. warning: suggest parentheses around assignment used as truth value
  617. warning: char format, different type arg (arg 3)
  618. warning: char format, different type arg (arg 5)
  619. warning: implicit declaration of function `XShmGetEventBase'
  620. i_x.c: In function `InitExpand2':
  621. warning: unused variable `jexp'
  622. warning: unused variable `iexp'
  623. m_menu.c: In function `M_ReadSaveStrings':
  624. warning: implicit declaration of function `read' <sys/types.h>
  625. warning: implicit declaration of function `close' <unistd.h>
  626. m_misc.c: In function `M_WriteFile':
  627. warning: implicit declaration of function `write'
  628. warning: implicit declaration of function `close'
  629. m_misc.c: In function `M_ReadFile':
  630. warning: implicit declaration of function `read'
  631. m_misc.c: In function `M_ScreenShot':
  632. warning: implicit declaration of function `access' <unistd.h>
  633. p_pspr.c: In function `P_MovePsprites':
  634. suggest parentheses around assignment used as truth value
  635. p_spec.c: In function `P_SpawnSpecials':
  636. warning: implicit declaration of function `atoi' <stdlib.h>
  637. w_wad.c: In function `strupr':
  638. warning: implicit declaration of function `toupper' <ctype.h>
  639. w_wad.c: In function `W_AddFile':
  640. warning: implicit declaration of function `read' <sys/types.h>
  641. warning: implicit declaration of function `lseek'
  642. warning: implicit declaration of function `close' <unistd.h>
  643. wi_stuff.c: In function `WI_loadData':
  644. warning: unused variable `pic'
  645. wi_stuff.c: At top level:
  646. warning: `background' defined but not used
  647. Tue Jan 21 22:00:00 1997 <bk@gamers.org ()>
  648. * doomdata.h (__BYTEBOOL__):
  649. Use builtin ANSI C++ bool.
  650. * d_main.c (IdentifyVersion):
  651. Bug fix: insufficient malloc created errors in malloc/realloc
  652. calls later on. Welcome to the risks of Copy'n'paste.
  653. Tue Jan 21 13:20:05 1997 <bk@gamers.org ()>
  654. * First formatting checkin.
  655. A word of explanation: prior to making any changes to the
  656. source, a couple of formatting runs will be made, followed
  657. by some purification runs.
  658. For this run, the Emacs mode selection line has been changed
  659. to use C++ style indenting (cc-mode.el). Each file has
  660. been automatically reformatted using Emacs indent-region.
  661. A few files have been changed manually already (i.e.,
  662. comments, use of tabs).
  663. Warning: using "diff" to compare files of different states
  664. during the reformatting will not give useful results.
  665. * hu_stuff.c:
  666. fixed "assignment discard const", the last remaining error
  667. message with default compilation.
  668. Sun Jan 19 14:27:06 1997 <bk@gamers.org ()>
  669. * Makefile:
  670. Minor fix for sndserver target, removed linuxsdoom target
  671. for the time being, added CVS header (kind of).
  672. * Initial CVS checkin.
  673. * soundsrv/irix/linux/sun.c:
  674. Changed includes (irix.h removed, soundsrv.h included).
  675. * i_svga.c:
  676. Changed to DOS 8+3.
  677. * soundsrv.h/c:
  678. Changed to DOS 8+3, included irix.h in soundsrv.h.
  679. * r_local.h:
  680. Same for PI, include math.h with Linux.
  681. * doomdef.h:
  682. Got rid of multiply defined warnings for Linux,
  683. included values.h.
  684. * FILES2:
  685. created a commented list of all files, removed a few
  686. more files (sndserver test, NeXT leftovers, DMX header).
  687. Identified the following main modules (see FILES2):
  688. AM, HU, M, P, R, S, ST, W, WI. Some stuff is separate
  689. (Z, F), some not clearly separable (G, D). System specific
  690. interfaces are in I. Some of the latter replace i_main.c
  691. (i.e. the void/int main(argc,argv) call), e.g. SVGA,
  692. others (X11, SHM, DGA) don't. There is a certain amount
  693. of overlap, and the largest module (with possibly most
  694. overlap) is P - playing, i.e. all the games state and
  695. animation handling.
  696. Dithering is currently not used.
  697. Sat Jan 18 15:14:41 1997 <bk@gamers.org ()>
  698. * r_draw.c:
  699. fixed !defined(USEASM) lines for R_DrawColumn/Span.
  700. Removed fpfunc.o/S from Makefile, now compiling
  701. X11 w/o any assembler.
  702. Got a running linuxxdoom again. We are in business.
  703. This source is going to be used for the initial CVS
  704. check in.
  705. * Tried a quick hack compiling it as COFF a.out instead
  706. of ELF, with "gcc -b i486-linuxaout". Same linker
  707. errors.
  708. Tried removing -DUSE_ASM. Still using fpfunc.S.
  709. * Tried linuxxdoom.
  710. Compile run: some warnings (redefinition of MAX/MIN
  711. SHORT/INT/LONG) in doomdef.h and (PI redefined)
  712. r_local.h.
  713. Link run: crashed, undefined references in
  714. d_main.c: undefined reference to `FixedDiv2'
  715. am_map.c: undefined reference to `FixedMul'
  716. r_main.c: undefined reference to `R_DrawColumn'
  717. r_main.c: undefined reference to `R_DrawSpan'
  718. r_plane.c: undefined reference to `FixedMul'
  719. This stuff is defined in fpfunc.S (Fixed point) and
  720. in r_draw.c (assembler in tmap.S not used).
  721. However, "nm," shows that r_draw.o does not include
  722. the drawing functions (see below - USE_ASM).
  723. Furthermore, the global symbols in fpfunc.S begin
  724. with an underscore, "_FixedMul" and "_FixedDiv2".
  725. More problems within fpfunc.o: undefined references to
  726. `_dc_yl' `_dc_yh'
  727. `_ylookup'
  728. `_centery'
  729. `_dc_x'
  730. `_columnofs'
  731. `_dc_iscale'
  732. `_dc_texturemid'
  733. `_dc_source'
  734. `_dc_colormap'
  735. `_ds_y' `_ds_x1' `_ds_x2'
  736. `_ds_xfrac' `_ds_yfrac'
  737. `_ds_xstep' `_ds_ystep'
  738. `_ds_colormap'
  739. `_ds_source'
  740. Again, underscore problem.
  741. Note: tmap.S currently obsolete, as somebody pasted all
  742. the texture mapping assembly into fpfunc.S. Gotta clean
  743. that up.
  744. * Created initial release from CD sources, created ChangeLog.
  745. Let the games begin.
  746. **************************************************************
  747. DOOM source code ChangeLog file
  748. **************************************************************