Go Back   Angband Forums > Angband > Variants

Thread Tools Display Modes
Old September 12, 2008, 15:46   #1
Join Date: May 2007
Posts: 289
CJNyfalt is on a distinguished road
Question regarding character view code

I want to tweak the character view code to allow for characters with infravision to see dungeon features without light, while still not allowing the character to read.

Would changing:
radius = p_ptr->cur_lite;
radius = MAX(p_ptr->cur_lite, p_ptr->see_infra);
in update_view in cave.c do the job, or is there something I'm missing?
CJNyfalt is offline   Reply With Quote
Old September 12, 2008, 17:05   #2
Join Date: May 2007
Posts: 289
CJNyfalt is on a distinguished road
The answer is yes, something is missing.

I needed to update the no_lite function no check for CAVE_GLOW instead of CAVE_SEEN when light radius is 0 or smaller.

I hope that I got it right, and there's no other hidden gotcha.
CJNyfalt is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font Change in SVN code? pesachyonah Vanilla 4 June 28, 2008 17:45
fun with the code (and a big thank you) will_asher Idle chatter 0 March 3, 2008 05:24
Screensaver needs to rewrite some code APWhite Vanilla 0 October 16, 2007 22:19
Looking through the code K.I.L.E.R Vanilla 5 July 11, 2007 09:01
The safe_setuid code CJNyfalt Vanilla 11 June 26, 2007 04:25

All times are GMT +1. The time now is 13:28.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.