FAQ Search Memberlist Usergroups
Jolt Country Forum Index
Register Profile Log in to check your private messages Log in
Log in Log in

Weird coding in verbstub.h (DoSearch)

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Jolt Country Forum Index -> Hugo's House of Horrors
View previous topic :: View next topic  
Author Message
Merk



Joined: 22 Nov 2004
Posts: 192
Location: Wichita, KS

PostPosted: Mon Jul 24, 2006 12:33 pm    Post subject: Weird coding in verbstub.h (DoSearch) Reply with quote

Code:

    elseif object is living
    {
        print CThe(object); MatchPlural(object, "doesn't", "don't");
        " let ";
        The(player)
        if object.pronouns #2
        {
            " search ";
            if object.pronouns #2
                print object.pronouns #2;
            else
                print object.pronoun;
        }
        print "."
    }


In the part where it checks for object.pronouns #2, it has an interior part that again checks for object.pronoun #2. Since it can't be in that block otherwise, the second check (and resulting "else") seems unnecessary...
Back to top
View user's profile Send private message Visit poster's website
Kent



Joined: 27 Jun 2003
Posts: 119

PostPosted: Tue Aug 08, 2006 1:29 pm    Post subject: Reply with quote

It looks like I _may_ have intended "if object.pronouns" in the enclosing conditional. I'll have to look at this to see what the logic is in general.
Back to top
View user's profile Send private message
Merk



Joined: 22 Nov 2004
Posts: 192
Location: Wichita, KS

PostPosted: Tue Aug 08, 2006 8:43 pm    Post subject: Reply with quote

Ah. As-is, it just seemed like extra code.

It really helps my understanding of the library files when I have to dig in to see how something does/doesn't work. :)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Jolt Country Forum Index -> Hugo's House of Horrors All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001 phpBB Group

Theme by Kage Musha - RPG Garden

Copyrights and trademarks are all of the belonging company. No copyright Infringement intended