Bill Currie
0e8d6d896f
Do a bit of comment cleanup.
2010-11-28 15:31:40 +09:00
Jeff Teunissen
74d959ec64
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-11-28 15:31:40 +09:00
Jeff Teunissen
877067de61
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-11-28 15:31:39 +09:00
Jeff Teunissen
0d0e7bfe18
TexturePalette.m: microscopic update
...
remove a bogus comment, clarify a printf call, add parens around a ternary
test.
2010-11-28 15:31:39 +09:00
Jeff Teunissen
ba508fa3e0
TexturePalette: Prevent NULL dereference
...
Keep the app from crashing on a wad that doesn't have any palette at all.
2010-11-28 15:31:39 +09:00
Bill Currie
946a06b264
Don't crash if the palette entry is not first.
...
Instead, swap the palette entry and the first entry (only in memory).
2010-11-28 15:31:39 +09:00
Bill Currie
12d79ba28d
More conversions to NSString
2010-11-28 15:31:39 +09:00
Jeff Teunissen
0e5cd14829
tactical whitespace bomb
...
Add return-type information to all methods, split up lines properly where
I could find them, and ran the whole thing through uncrustify. Looks purty
now. :)
2010-11-28 15:31:38 +09:00
Bill Currie
939605309f
Do error checking when trying to load a wad file.
2010-11-28 15:31:37 +09:00
Bill Currie
997df6c310
Char buffer audit.
...
Get rid of most static char buffers. The few remaining are either in file
structs or messy code that needs further analysis.
2010-11-28 15:31:37 +09:00
Bill Currie
1b7be81f11
Do a const-correct run.
2010-11-28 15:31:37 +09:00
Bill Currie
62c73b300e
Fix the tangled mess of entity connections.
...
What was the person who wrote valueForQKey thinking? Make the function
const-correct and bubble the changes through the code.
2010-11-28 15:31:37 +09:00
Bill Currie
bb3ea99806
Fix texture names.
2010-11-28 15:31:36 +09:00
Bill Currie
4dd0bf5804
Get TextureView working.
2010-11-28 15:31:35 +09:00
Bill Currie
b215a5e856
Camera view seems to work moderately well.
2010-11-28 15:31:34 +09:00
Bill Currie
f6ebcd45ac
Use QF's wadfile support.
...
Still fragile, but it can load wad files.
2010-11-28 15:31:34 +09:00
Bill Currie
e959a6ee3c
Add \n to Sys_Printf calls.
2010-11-28 15:31:33 +09:00
Bill Currie
44942df87f
Fixes for building with QF.
2010-11-28 15:31:33 +09:00
Bill Currie
d23300d58b
Pass .m files through indent.
...
The result isn't perfect, but it cleans up the whitespace and makes the
code more consistent with the rest of the project.
2010-11-28 15:31:31 +09:00
Bill Currie
d3a12ee727
Finally, everything does compile.
...
However, it still won't work (no gorm, commented code, ...).
Borrow an old implementation of the Storage class until I figure out just
what it's being used for.
2010-11-28 15:31:31 +09:00
Bill Currie
767d871fb8
Make MapEdit (QuakeEd) compile.
...
It won't work yet as there's no gorm file and there's code that has been
commented out, but it finally compiles.
2010-11-28 15:31:31 +09:00
Bill Currie
997102fea8
audit the usage of "only"
...
There are still a few iffy places (notably around certain prepositions), but
the relevant sentences are now much easier to read.
2010-01-13 06:42:26 +00:00
Bill Currie
4dcc29a136
bloody gcc deciding #import isn't good enough :P
2003-05-06 21:52:58 +00:00
Bill Currie
48a5ad0d36
my WIP on porting QuakeEd to GNUstep/QuakeForge
2003-03-18 19:48:24 +00:00