diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /pipermail/nel/2001-March/000362.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to 'pipermail/nel/2001-March/000362.html')
-rw-r--r-- | pipermail/nel/2001-March/000362.html | 96 |
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->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> |