Commit graph

6956 commits

Author SHA1 Message Date
Bill Currie
34d60539de Document the portals code. 2010-10-13 20:52:06 +09:00
Bill Currie
cc098fa720 Documentation for outside. 2010-10-13 20:52:06 +09:00
Bill Currie
a92bd6dec1 Document the merge code 2010-10-13 20:52:06 +09:00
Bill Currie
6ce7c5040b Make NewFaceFromFace const-correct 2010-10-13 20:52:06 +09:00
Bill Currie
6c89883c8f Lots of csg4 documentation 2010-10-13 20:52:06 +09:00
Bill Currie
17e5813a51 Make a block of code a little easier to read. 2010-10-13 20:52:06 +09:00
Bill Currie
a5c96cb825 More documentation and move some functions. 2010-10-13 20:52:06 +09:00
Bill Currie
2e6eb419ca Some documentation for the map parser. 2010-10-13 20:52:06 +09:00
Bill Currie
5cf5c1e227 lots of whitespace 2010-10-13 20:52:06 +09:00
Bill Currie
5c0a55d818 Add some documentation for the brush code. 2010-10-13 20:52:06 +09:00
Bill Currie
9a4c9c506f Fix bbox calculation for rotating brush entities. 2010-10-13 20:52:06 +09:00
Bill Currie
b91568bbdd More non-canonical checks in PlaneTypeForNormal. 2010-10-13 20:52:06 +09:00
Bill Currie
c9eb679c41 Make PlaneTypeForNormal const-correct. 2010-10-13 20:52:06 +09:00
Bill Currie
9a30968c87 type size correctness 2010-10-13 20:52:06 +09:00
Bill Currie
cd159e1cc1 Use LoadBSPMem to load brush models.
Now that Mod_LoadBrushModel uses bspfile.[ch], the engine uses the same
code as the tools to work with bsp files.
2010-10-13 20:52:05 +09:00
Bill Currie
7fca21837a fix some errors found by valgrind 2010-10-13 20:52:05 +09:00
Bill Currie
db898655d1 make LoadBSPFile own the memory for the bsp data 2010-10-13 20:52:05 +09:00
Bill Currie
719ca15516 make LoadBSPMem work in-place
LoadBSPMem now modifies the passed in buffer rathern than allocating new
memory. One step closer to cleaning up brush model loading.
2010-10-13 20:52:05 +09:00
Bill Currie
56fb4d9a22 allow safe bsp freeing
any memory the bsp thinks it does not own will not be freed
2010-10-13 20:52:05 +09:00
Bill Currie
cec8e09f07 white space cleanup 2010-10-13 20:52:05 +09:00
Bill Currie
99d8ea22b4 fix uninitialized data
In the process of testing the changes to WriteBSPFile, it was found that
the data being supplied to it contained uninitialized values.
2010-10-13 20:52:05 +09:00
Bill Currie
1d86e71404 make WriteBSPFile take a const bsp_t *
This means that the supplied bsp can now be reused, as it should be.
2010-10-13 20:52:05 +09:00
Bill Currie
f4042c5b91 Make the bsp disk data structures type size independent.
However, this assumes float is always 32 bits.

Also use size_t for the *size fields in bsp_t and clean up the mess.
2010-10-13 20:52:05 +09:00
Bill Currie
8808eba3ff add VectorSet macro
VectorSet(a,b,c,d) -> vec3_t d = (a, b, c)

This should be useful.
2010-10-13 20:52:05 +09:00
Bill Currie
13b5dade87 Add some view opacity. 2010-10-12 18:26:24 +09:00
Bill Currie
74de76faa0 Remove some unused files. 2010-10-11 21:13:34 +09:00
Bill Currie
9daf527afd Do a bit of comment cleanup. 2010-10-11 21:11:33 +09:00
Bill Currie
a9987467ec Allow entity copying too. 2010-10-11 09:52:10 +09:00
Bill Currie
1945da99d9 Can now copy brushes.
Implement SetBrush's copyWithZone:
2010-10-11 09:19:09 +09:00
Jeff Teunissen
708c8743af Cope gracefully with wadfiles we can't handle
This is a weird little diff. We're doing a lot of gymnastics here so that
we don't have to crash (killing any loaded unsaved work!) when we find a
wadfile we don't know how to deal with.
2010-10-10 06:23:37 -04:00
Bill Currie
670d9155e7 Fix key resetting.
Make sure we don't add a new key-pair when the key already exists, and if
the existing value has the same pointer as the "new" value, do nothing.
2010-10-10 18:47:27 +09:00
Bill Currie
3f08268038 Make sure unterminated lump names don't cause propblems when comparing. 2010-10-10 18:31:14 +09:00
Bill Currie
1902ca6159 Ensure the string to be hashed is terminated. 2010-10-10 18:21:30 +09:00
Bill Currie
eeb6af7af9 Merge branch 'forge' of ssh://quake.git.sf.net/gitroot/quake/quakeforge into forge 2010-10-10 17:08:32 +09:00
Bill Currie
7414fcf515 Can now select textures. 2010-10-10 17:07:48 +09:00
Jeff Teunissen
942a6ba6f0 return the actual string
Oops. I returned a text field instead of the string in it. :)
2010-10-10 03:55:01 -04:00
Jeff Teunissen
34cf3f7570 Export the base directory of the open project
Project -baseDirectoryPath returns the absolute path to the directory from
which the .qpr file was loaded.
2010-10-10 03:39:29 -04:00
Bill Currie
39da12282c Merge branch 'forge' of ssh://quake.git.sf.net/gitroot/quake/quakeforge into forge 2010-10-10 15:53:19 +09:00
Bill Currie
b2cdede898 Correctly initialize the path variables.
Use the current project file, not the default.
2010-10-10 15:52:18 +09:00
Jeff Teunissen
75b63316e1 Ignore all *.a files, testsound
the ruamoko/ dir had some .a libs that needed ignoring, and
libs/audio/testsound should be ignored too.
2010-10-10 02:31:55 -04:00
Jeff Teunissen
0bb30fc994 TexturePalette.m: microscopic update
remove a bogus comment, clarify a printf call, add parens around a ternary
test.
2010-10-10 02:24:35 -04:00
Jeff Teunissen
92b735fe40 TexturePalette: Prevent NULL dereference
Keep the app from crashing on a wad that doesn't have any palette at all.
2010-10-10 01:51:22 -04:00
Bill Currie
8f92076b32 Fix brush selection.
The great cleanup caused a few vital returns to disappear (they probably
went to the same place a lot of my lego did).
2010-10-10 13:07:28 +09:00
Bill Currie
7dca7e8e2e Doc/boostrap tweaks.
Mention git instead of subversion, add libsamplerate to the requirements
and it turns out autoconf 2.65 is good enough.
2010-10-10 10:05:01 +09:00
Bill Currie
29d544d766 Don't crash if the palette entry is not first.
Instead, swap the palette entry and the first entry (only in memory).
2010-10-09 21:57:18 +09:00
Bill Currie
0082b93283 Correct miptex byte-count scaling factor. 2010-10-09 21:56:04 +09:00
Bill Currie
faf63e60c2 Make wad files type size-safe. 2010-10-09 16:10:49 +09:00
Bill Currie
f59eec415c Support Quests' map format.
This is mostly because I have a few maps in this format.
2010-10-09 15:36:47 +09:00
Bill Currie
f9ffb30d9a Got the value/key backwards. 2010-10-09 15:04:40 +09:00
Bill Currie
186657c784 Even more conversions to NSString 2010-10-09 10:02:05 +09:00