#56 Shrines accept 4 letter virtue abbreviation

open
nobody
None
5
2005-01-09
2005-01-09
Anonymous
No

It would probably save a pant load of questions on the
xu4 forums if xu4 accepted the 4 leter abbreviation
when praying at shrines.

ie.
"hono" and "honor" both work at the honour shrine.
(honour is the proper way of spelling it, crazy Americans)

Or "comp" and "compassion" should also work.

Discussion

  • Brian
    Brian
    2008-08-03

    Logged In: YES
    user_id=1926955
    Originator: NO

    The following patch will change the codebase to use the 4 character abbreviations you were looking for. As you can see from the patch the check was looking at the first 6 characters in what you enter for the virtue.

    Index: src/shrine.cpp

    RCS file: /cvsroot/xu4/u4/src/shrine.cpp,v
    retrieving revision 1.25
    diff -r1.25 shrine.cpp
    111c111
    < if (strncasecmp(virtue.c_str(), getVirtueName(getVirtue()), 6) != 0 || cycles == 0) {
    ---
    > if (strncasecmp(virtue.c_str(), getVirtueName(getVirtue()), 4) != 0 || cycles == 0) {