1
0
forked from mirrors/0ad

Commit Graph

  • 35591f4d24 Premake support for assemblying .asm-files with nasm (now also on windows!) olsner 2005-09-13 03:51:48 +00:00
  • 884418aed9 Linux support for including nasm in the build process olsner 2005-09-13 00:16:47 +00:00
  • a0a01e7a7d Linux/GCC Compat, added some includes, ported inline assembly stuff to gnu syntax (and misc. cleanup in ia32.cpp) olsner 2005-09-12 23:37:52 +00:00
  • 3fdf41bd54 misused SVN to transfer from laptop. fixed a compile error that was in there janwas 2005-09-12 22:58:55 +00:00
  • 15ca12311b more WIP; initial memcpy code janwas 2005-09-12 22:13:03 +00:00
  • aa118403bb Terrain: CalcFromPosition, to convert world-space to tile-space. Ykkrosh 2005-09-12 20:04:26 +00:00
  • d3f41e1b9f Finally put the command buttons back in, but the GUI doesn't seem to be accessible when a unit is clicked, so I can't be sure it works. I think it may be due to no left-click options in Simon's world click event handler. Need to ask him about it. Acumen 2005-09-10 17:30:57 +00:00
  • d64e2ed19f dyn_array: use memcpy2 add tex error codes move memcpy code to ia32 tex: simplify codec call with separate tex_codec_for* calls codecs: use error code instead of string; remove redundant params ia32: heavy WIP - testing memcpy implementations util: prepare for zero-copy improvement to screenshot code janwas 2005-09-10 14:28:55 +00:00
  • 189786928e minor error path improvements+comments; add WARN_IF_FALSE et al. janwas 2005-09-08 17:14:19 +00:00
  • 3c9ad073bc minor error reporting / wording changes while cruising through. janwas 2005-09-08 01:48:57 +00:00
  • 494d27bdd4 moved SAFE_DELETE to lib.h dyn_array supports "wrapping" other types of memory (stopgap measure) texture codecs now load via DynArray (intermediate step to all mem stuff going through res/mem.cpp) simplified tex codecs by doing as many checks as possible in tex_load_mem ("template method"-esque) janwas 2005-09-08 01:47:45 +00:00
  • 5c4069f5e1 This was SVN commit r2689. Matei 2005-09-08 01:34:24 +00:00
  • 467b14e928 - Added stay-in-tile-class and border-tile-class constraints. Matei 2005-09-08 01:20:51 +00:00
  • c428f510f6 This was SVN commit r2687. Matei 2005-09-08 01:18:55 +00:00
  • 4cc30aeb56 This was SVN commit r2684. Matei 2005-09-07 02:24:13 +00:00
  • 55107c69fe This was SVN commit r2683. Matei 2005-09-07 02:17:29 +00:00
  • 8b467d6f2f This was SVN commit r2681. Matei 2005-09-06 22:54:41 +00:00
  • 6b284a8b95 This was SVN commit r2680. Matei 2005-09-06 22:47:26 +00:00
  • 1a7d67a97f dyn_array: efficient expandable array that doesn't waste mem or relocate itself. TODO: self test and dox file: expose block size constant; always round user transfers up tex: transform() now receives what to change, not what to achieve. tex*: encoding works with DynArray+VFS backend GameSetup: free g_BuildingPlacer to avoid mem leak. fixed some warnings+bugs. janwas 2005-09-06 22:44:48 +00:00
  • 9dc8a71b15 Added health properties to BaseEntity so they work properly for Entity as well (on units that don't directly specify them). Matei 2005-09-06 19:30:41 +00:00
  • 5f2857b6b8 Modified health bar height on buildings and added default of -1.0 (which means don't display health bar) on all entities. Matei 2005-09-06 19:29:31 +00:00
  • 6f10e8c09c Updated building placement cursor to make the object glow read and not be placeable if trying to place in an invalid area. Matei 2005-09-06 08:25:41 +00:00
  • d867f0c5fc box_height parameter for Matei. Acumen 2005-09-06 00:51:18 +00:00
  • 11de356225 Improved building placer to show the actor that will be placed instead of the original white lines. Matei 2005-09-05 23:44:21 +00:00
  • 65e90614f2 Added hitpoint bars above selected and mouseovered units. Matei 2005-09-05 21:45:26 +00:00
  • 1af9aa074e Added initial version of building placement cursor, which can be shown with the startPlacing(templateName) JS function. Matei 2005-09-05 19:48:28 +00:00
  • 84a980a344 Reimplemented session GUI refresh loop, with unit portrait as test subject. Fixed some broken things. Acumen 2005-09-05 03:21:20 +00:00
  • 7b144a11ca ogl_tex: has to be aware of multitexturing because if hotloading a texture on TMU1, we have to re-bind it to that. done waio: fix bug with SetErrorMode usage triggered by reading "The old new thing" (Raymond Chen's blog) janwas 2005-09-04 20:49:58 +00:00
  • 819aca0f1c work around flaw in some DDS headers (not setting alpha flag). this is critical because renderer/GUI code now uses TEX_ALPHA flag instead of just checking against all known GL formats containing alpha janwas 2005-09-04 20:05:21 +00:00
  • c6215a1451 guirenderer: fix bug that was breaking the ScEd button in main menu. it was calling glEnable/glActiveTextureUnit before ogl_tex_bind, which is now also doing that. janwas 2005-09-04 19:48:26 +00:00
  • c0c08bd851 This was SVN commit r2661. Matei 2005-09-03 21:54:11 +00:00
  • b071585610 Added tile class and "avoid at distance" support to RMGen. Matei 2005-09-03 21:53:07 +00:00
  • 436de9b0ff Committing updated font with a bit of test text while experimenting with accented characters. Acumen 2005-09-03 21:00:43 +00:00
  • 2b55945893 doc clarification as requested by Philip (thanks for feedback!) janwas 2005-09-03 14:41:06 +00:00
  • f4c535a326 lib.cpp: forgot to use TEST (for self-test) self_test: add dox (also to wiki) tex_codecs: further work; renamed+reorg for clarity. separating codecs from IO implementation janwas 2005-09-02 18:38:25 +00:00
  • 93313f61bf no more changes! Wijitmaker 2005-09-02 08:57:59 +00:00
  • 6b0b64b0f9 roman roof again Wijitmaker 2005-09-02 07:40:24 +00:00
  • 50ea8c532c - PathPackage now does CHECK_ERR. adjusted callers appropriately - mem.h: export mem_assign (needed to wrap a mem buffer) - use stricmp in some file extension comparisons - wposix: properly sets last-error code when opendir fails - also: misc comments janwas 2005-09-02 03:03:06 +00:00
  • 21709a5a7a (as before, belonged in the previous batches) janwas 2005-09-02 02:58:40 +00:00
  • 71f7fccd12 split texture loader into codecs (greatly eases navigation) tex.cpp now has loader API and codec support routines. provide for codecs "transforming" the image; this allows e.g. decompressing DDS, which is currently done in ogl code (but belongs here) janwas 2005-09-02 02:56:54 +00:00
  • 9ec828f6fd - both tex.cpp and ogl_tex.cpp had functions named tex_* - confusing. renamed to ogl_tex* to disambiguate. janwas 2005-09-02 02:54:02 +00:00
  • ed5041a301 some infrastructure for self-tests: gets rid of boilerplate code. janwas 2005-09-02 02:47:25 +00:00
  • 3471df7788 Added vertical line thingy Ykkrosh 2005-09-02 00:50:31 +00:00
  • 156fa094e9 Added placeholder milk cursor. Hoo yeah. Acumen 2005-09-01 22:46:00 +00:00
  • 4d4437ded0 resize to 32x32 to match other alpha maps. necessary because CRenderer::LoadAlphaMaps now actually checks the size correctly janwas 2005-09-01 18:14:35 +00:00
  • f02ebca5e5 another update to the roman texture Wijitmaker 2005-09-01 08:40:13 +00:00
  • a21c9e83fe texture tweaks Wijitmaker 2005-09-01 08:02:12 +00:00
  • 113cf0b7e5 more houses Wijitmaker 2005-09-01 07:17:41 +00:00
  • 486524b165 window change as requested by Michael Wijitmaker 2005-09-01 03:35:07 +00:00
  • f46853e009 fixed normal on the house Wijitmaker 2005-08-31 22:17:05 +00:00
  • 80443f4030 preliminary roman stuff Wijitmaker 2005-08-31 21:39:31 +00:00
  • a2f4213641 small tweak Wijitmaker 2005-08-27 05:35:58 +00:00
  • 49498c80d2 Texture update for player color, window, and door. Updated CC and Temple with recessed door, flipped the griffons, new fortress, fixed house C oddities Wijitmaker 2005-08-27 05:23:37 +00:00
  • 3c58f50ff3 GUI-toggle feature for Michael (toggle with the G key), and fixed alignment of watermark. Acumen 2005-08-26 21:02:00 +00:00
  • a1f13c5976 Updated Greek buildings - and some tweaked maps Wijitmaker 2005-08-26 04:55:34 +00:00
  • 79e8f21c6f Although there's still a lot of glitches and random crashes, it should now theoretically be possible for clients to join a host's game. Acumen 2005-08-25 15:07:16 +00:00
  • 43fda176cc This was SVN commit r2631. Matei 2005-08-22 03:27:15 +00:00
  • e46136fe96 This was SVN commit r2630. Matei 2005-08-22 03:26:40 +00:00
  • 1039e9f2a2 Atlas: Removed compile-time linking Ykkrosh 2005-08-20 18:05:25 +00:00
  • ccb813119e Atlas: Slightly better undo system (with merging of 'continuous' commands) Ykkrosh 2005-08-20 17:37:48 +00:00
  • 5d62c3f3f7 Atlas: Simple undo system Ykkrosh 2005-08-20 15:44:50 +00:00
  • a10082d69b Minor fixes Ykkrosh 2005-08-16 19:51:18 +00:00
  • b4ad393ee4 moved ps/X* to ps/XML/ premake: reflect 2 added and 1 removed source dir add ps/Util - some helpful functions that were previously in main.cpp janwas 2005-08-14 23:50:37 +00:00
  • 70b44f6485 moved self-tests into their respective files (this makes checking if a file has one easier) and automatically calls them if #if PERFORM_SELF_TEST == 1 (allows global enable/disable of all tests and also per-file override). janwas 2005-08-14 23:36:43 +00:00
  • dc027002c0 host of changes to accommodate Atlas: janwas 2005-08-14 23:34:37 +00:00
  • c4cb65af72 Disabled Atlas Editor from main menu for the time being (it'll be accessible from shortcut). Acumen 2005-08-14 18:44:37 +00:00
  • 72806285f8 Editor button/enable/disable click to help in experimenting with Atlas interface. Acumen 2005-08-14 16:03:44 +00:00
  • b5575256e9 wposix: add warning for RTLD_GLOBAL, which isn't supported. janwas 2005-08-14 15:23:59 +00:00
  • 5f1983b9a4 Avoid "unreachable code" warnings Ykkrosh 2005-08-14 02:07:12 +00:00
  • be9bdcc308 /W4 in Premake Ykkrosh 2005-08-14 01:16:11 +00:00
  • 7a9f59c192 Improved navigation of file list by backing up particularly old and deprecated maps, and alphabetically sorted the map list. Acumen 2005-08-14 01:08:09 +00:00
  • 9e40ebc93d RealDir.watch wasn't initialized, leading to complaints at exit. fixed janwas 2005-08-13 23:37:31 +00:00
  • 3552c54bdc Made ToPrimitive throw on failure (since that is preferable to returning an undefined value) Ykkrosh 2005-08-13 18:32:58 +00:00
  • e8e532803b fix missing , (didn't notice because console window closed immediately, doh) janwas 2005-08-13 17:23:05 +00:00
  • a0e7d02cdd Fixed and rebuilt ScEd. Updated tex to handle greyscale PNGs. Ykkrosh 2005-08-13 17:14:57 +00:00
  • 0e20c08969 waio: fix spurious WARN_ERR vfs: integrate hotload code fixed a few warnings as well. janwas 2005-08-13 17:09:57 +00:00
  • 6c4aab2e55 cleaned up a bit and activated W4 warnings on windows janwas 2005-08-13 17:07:05 +00:00
  • fac9a8aa87 reading a gamedev thread triggered the realization that WDIR no longer needs to store full path in dirent. therefore, streamlined opendir/readdir/closedir; I guess they are a good bit more efficient now. janwas 2005-08-12 22:19:31 +00:00
  • 4aa740bff5 - split up lib/res into file, graphics and sound. janwas 2005-08-12 17:06:53 +00:00
  • ac034f3733 add new res/ dirs janwas 2005-08-12 16:59:19 +00:00
  • 8475c16c31 fix bugs in ilog2 (yoink) and add self-test+asserts. janwas 2005-08-11 02:02:10 +00:00
  • aba23e4fdb config: got my grubby hands on a list of OS defines, so those have been assimilated. also add STL_ defines for GCC and ICC. janwas 2005-08-10 20:53:52 +00:00
  • cd4273cd16 Oops, I broke it. Fixed by reinserting memory leak. Ykkrosh 2005-08-10 01:27:33 +00:00
  • 622ceeda94 - color -> colour - add note on performance in TextureManager.cpp janwas 2005-08-10 01:12:03 +00:00
  • ff97a903b8 wpthread: improved code and avoid memory alloc during thread creation wsdl and tex: use british english terms janwas 2005-08-10 00:33:15 +00:00
  • 4b33f49da1 - sysdep cursor functions renamed sys_cursor_* - res/cursor.cpp cleaned up, uses sys_cursor_*; also fixed some bugs. janwas 2005-08-10 00:27:56 +00:00
  • b63bc42245 TextureManager: stopped memory leaks wsdl: create window at expected size, and retrieve correct mouse coords CStr: not ISerializable (=> not virtual) Game: less excessive complaining, since the original problem seems to be fixed Entity: fixed evaluation order Others: minor comments/etc Ykkrosh 2005-08-09 21:26:40 +00:00
  • 78c751aff6 ogl: add oglSquelchError call. use that if you know a piece of code will trigger an error and want to suppress it (e.g. INVALID_ENUM after using GL_CLAMP_TO_EDGE although we've already warned the user that not everything may work) janwas 2005-08-09 16:32:23 +00:00
  • 5299dcad86 - config: all macros are defined as 1 / 0. testing with #if allows compiler warnings (testing undefined macro) to spot misspelled macros - debug: add provision for naming threads. allows adding current thread name to log messages and displays their names in the debugger. - replaced various if(err < 0) complain() sequences with new variants of CHECK_ERR (see lib.h) - fixes to mmgr/VC debug alloc enable code - improved h_mgr error reporting (now complains when h_free fails) - US -> UK english (partial) - fix tex_load double-free bug - move win32 mouse cursor code into sysdep - error dialog is now topmost to make sure it's visible (was a problem) - handle WM_QUIT before displaying error dialog (makes sure it's shown) janwas 2005-08-09 16:23:19 +00:00
  • 620c65722f group all config-related code into CFG_ functions. also as in prev. 2 revisions janwas 2005-08-09 16:03:36 +00:00
  • 52ebd6ba11 scripting-interface improvements - strict param count checks - use ScriptingHost::RunMemScript instead of copy+pasted code - replace duplicated parameter access code with macros janwas 2005-08-09 16:02:15 +00:00
  • a69ac0dee9 - fix w4 warnings - add convenience macros for config_db(CFG_GET_SYS_VAL) - VFSUtil::EnumDirEnts now uses flags instead of bool recursive - UNUSED() for params, UNUSED2 (<- need better name) for variables - config.h defines must be tested with #if (always defined) -> allows detecting misspellings thanks to compiler warnings - replace debug_assert(0) with debug_warn (its sole purpose) - replace ScriptingHost::ValueToInt et al with ToPrimitive - use nommgr.h to disable both mmgr and VC debug heap janwas 2005-08-09 15:55:44 +00:00
  • 630b375f4d ScEd updated for new terrain stuff, window styles for pyrogenesis in windowed mode changed to give a bordered movable window. olsner 2005-08-08 03:59:50 +00:00
  • 43baf6ada6 New terrain properties stuff, gcc compatability and updated unix debugging stuff olsner 2005-08-07 22:00:16 +00:00
  • b3a9ed2886 New terrain properties stuff, gcc compatability and updated unix debugging stuff olsner 2005-08-07 21:58:36 +00:00
  • 7763ea6132 A little more client connection work. Acumen 2005-08-07 17:02:22 +00:00
  • 76f3524190 Fixed FPS, which had stopped working (since it no longer recognised the mouse.x and mouse.y component of the string). Acumen 2005-08-07 14:51:55 +00:00
  • f1eeadb2c6 Realised I only uploaded the gui/ folder in my last submission. My bad. Thanks for mentioning it in the meeting, Jason. Acumen 2005-08-07 14:06:30 +00:00
  • 2451e009d1 Added a line that had been somehow deleted and was causing errors. pyrolink 2005-08-04 23:07:21 +00:00
  • 7fb59c8471 Corrected the minimap's "interactive"/"warp" function so it works on all zooms and rotations. pyrolink 2005-08-04 08:33:33 +00:00