aboutsummaryrefslogtreecommitdiff
path: root/pipermail/nel/2001-March/000362.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pipermail/nel/2001-March/000362.html96
1 files changed, 96 insertions, 0 deletions
diff --git a/pipermail/nel/2001-March/000362.html b/pipermail/nel/2001-March/000362.html
new file mode 100644
index 00000000..0830f108
--- /dev/null
+++ b/pipermail/nel/2001-March/000362.html
@@ -0,0 +1,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-&gt;getRelativeFileName(CTile::diffuse));
+- else
++ if(tile) {
++ textName= tile-&gt;getRelativeFileName (CTile::diffuse);
++ if(textName!=&quot;&quot;)
++ pass.TextureDiffuse= findTileTexture(TileBank.getAbsPath()+textName);
++ } else {
+ pass.TextureDiffuse= new CTextureCross;
++ }
+ if(tile)
+ {
+ textName= tile-&gt;getRelativeFileName (CTile::alpha);
+ if(textName!=&quot;&quot;)
+ 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 &quot; meetings, n.:
+System Administrator A place where minutes are kept
+Got.net and hours are lost.&quot;
+&lt;<A HREF="mailto:robert@got.net">robert@got.net</A>&gt; -- 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>