Skip to content

Commit

Permalink
Merge pull request #1 from creidieki/combined
Browse files Browse the repository at this point in the history
Grab some long-outstanding bugfixes.
  • Loading branch information
kevingranade committed Oct 20, 2012
2 parents 52029ce + 2b9a257 commit 697b734
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion facdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

std::string faction_adj_pos[15] = {
"Shining", "Sacred", "Golden", "Holy", "Righteous", "Devoted", "Virtuous",
"Splendid", "Divine", "Radiant", "Noble", "Venerable", "Immaculate"
"Splendid", "Divine", "Radiant", "Noble", "Venerable", "Immaculate",
"Heroic", "Bright"};

std::string faction_adj_neu[15] = {
Expand Down
8 changes: 4 additions & 4 deletions game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ [email protected].");
mvwprintz(w_open, 6, 12, c_red, "No templates found!");
else {
int tempstart = (sel1 < 6 ? 0 : sel1 - 6),
tempend = (sel1 < 6 ? 14 : sel1 + 6);
tempend = (sel1 < 6 ? 14 : sel1 + 8);
for (int i = tempstart; i < tempend; i++) {
int line = 6 + i - tempstart;
mvwprintz(w_open, line, 29, c_black, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
Expand All @@ -420,16 +420,16 @@ [email protected].");
sel1++;
else
sel1 = 0;
} else if (ch == 'h' || ch == '<' || ch == KEY_ESCAPE) {
} else if (ch == 'h' || ch == '<' || ch == KEY_ESCAPE || templates.size() == 0) {
sel1 = 1;
layer = 2;
for (int i = 0; i < templates.size() && i < 21; i++)
for (int i = 0; i+6 < 21; i++)
mvwprintz(w_open, 6 + i, 12, c_black, " ");
for (int i = 22; i < 25; i++)
mvwprintw(w_open, i, 0, " \
");
}
if (ch == 'l' || ch == '\n' || ch == '>') {
else if (ch == 'l' || ch == '\n' || ch == '>') {
if (!u.create(this, PLTYPE_TEMPLATE, templates[sel1])) {
u = player();
delwin(w_open);
Expand Down
4 changes: 2 additions & 2 deletions setvector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void setvector(std::vector<std::string> &vec, ... )
va_list ap;
va_start(ap, vec);
char *tmp;
while (tmp = (char *)va_arg(ap, int))
while (tmp = va_arg(ap, char *))
vec.push_back((std::string)(tmp));
va_end(ap);
}
Expand Down Expand Up @@ -126,7 +126,7 @@ void setvector(std::vector<style_move> &vec, ... )
technique_id tmptech;
int tmplevel;

while (tmpname = (char *)va_arg(ap, int)) {
while (tmpname = va_arg(ap, char *)) {
tmptech = (technique_id)va_arg(ap, int);
tmplevel = (int)va_arg(ap, int);
vec.push_back( style_move(tmpname, tmptech, tmplevel) );
Expand Down
2 changes: 1 addition & 1 deletion skill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,6 @@ double price_adjustment(int barter_skill)
case 4: return 0.8;
case 5: return 0.6;
case 6: return 0.5;
default: return double(int(100 * (.3 + 1 / barter_skill)) / 100);
default: return 0.3 + 1.0 / barter_skill;
}
}

0 comments on commit 697b734

Please sign in to comment.