blob: 0830f108a3c89a7818517a683a7272b0b0db187e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Nel] here's the landscape.cpp patch I used</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:robert%40paradox.got.net">
<LINK REL="Previous" HREF="000361.html">
<LINK REL="Next" HREF="000363.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Nel] here's the landscape.cpp patch I used</H1>
<B>robert@paradox.got.net</B>
<A HREF="mailto:robert%40paradox.got.net"
TITLE="[Nel] here's the landscape.cpp patch I used">robert@paradox.got.net</A><BR>
<I>Wed, 7 Mar 2001 01:33:34 -0800 (PST)</I>
<P><UL>
<LI> Previous message: <A HREF="000361.html">[Nel] segv if I press alt?</A></li>
<LI> Next message: <A HREF="000363.html">[Nel] here's the landscape.cpp patch I used</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#362">[ date ]</a>
<a href="thread.html#362">[ thread ]</a>
<a href="subject.html#362">[ subject ]</a>
<a href="author.html#362">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Thanks to Leighton's advice I was able to get running. Here's the
patch I used:
$ cvs diff landscape.cpp
Index: landscape.cpp
===================================================================
RCS file: /home/cvsroot/code/nel/src/3d/landscape.cpp,v
retrieving revision 1.48
diff -u -r1.48 landscape.cpp
--- landscape.cpp 2001/02/28 14:28:57 1.48
+++ landscape.cpp 2001/03/07 09:35:52
@@ -741,16 +741,21 @@
// Fill rdrpass.
CPatchRdrPass pass;
// The diffuse part for a tile is inevitable.
- if(tile)
- pass.TextureDiffuse= findTileTexture(TileBank.getAbsPath()+tile->getRelativeFileName(CTile::diffuse));
- else
+ if(tile) {
+ textName= tile->getRelativeFileName (CTile::diffuse);
+ if(textName!="")
+ pass.TextureDiffuse= findTileTexture(TileBank.getAbsPath()+textName);
+ } else {
pass.TextureDiffuse= new CTextureCross;
+ }
if(tile)
{
textName= tile->getRelativeFileName (CTile::alpha);
if(textName!="")
pass.TextureAlpha= findTileTexture(TileBank.getAbsPath()+textName);
- }
+ } else {
+ pass.TextureAlpha= new CTextureCross;
+ }
// Fill tileInfo.
As he said, this is not an actuall fix, merely a way to cover up the
problem. This will probably make sense to someone there and in the
mean time I can learn about the rest of this system.
Woo hoo!
--
Robert de Forest " meetings, n.:
System Administrator A place where minutes are kept
Got.net and hours are lost."
<<A HREF="mailto:robert@got.net">robert@got.net</A>> -- login fortune
</pre>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="000361.html">[Nel] segv if I press alt?</A></li>
<LI> Next message: <A HREF="000363.html">[Nel] here's the landscape.cpp patch I used</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#362">[ date ]</a>
<a href="thread.html#362">[ thread ]</a>
<a href="subject.html#362">[ subject ]</a>
<a href="author.html#362">[ author ]</a>
</LI>
</UL>
</body></html>
|