- Lehren gefixt

This commit is contained in:
Christian Schlittchen 2002-03-10 15:43:00 +00:00
parent 4553aa3f60
commit 2314fefc93
3 changed files with 9 additions and 5 deletions

View File

@ -304,7 +304,7 @@ teach(region * r, unit * u)
if (igetkeyword(student->thisorder, student->faction->locale) == K_STUDY) {
/* Input ist nun von student->thisorder !! */
sk = getskill(student->faction->locale);
if (sk != NOSKILL && eff_skill(u, sk, r) >= eff_skill(student, sk, r)+TEACHDIFFERENCE) {
if (sk != NOSKILL && eff_skill(u, sk, r)-TEACHDIFFERENCE >= eff_skill(student, sk, r)) {
teaching -= teach_unit(u, student, teaching, sk, true, &academy);
}
}
@ -402,7 +402,8 @@ teach(region * r, unit * u)
msg_error(u, u->thisorder, "teach_nolearn", "student", u2));
continue;
}
if (eff_skill(u2, sk, r) + TEACHDIFFERENCE >= eff_skill(u, sk, r)) {
/* u is teacher, u2 is student */
if (eff_skill(u2, sk, r) >= eff_skill(u, sk, r)-TEACHDIFFERENCE) {
add_message(&u->faction->msgs,
msg_error(u, u->thisorder, "teach_asgood", "student", u2));
continue;

View File

@ -351,7 +351,10 @@ NeuePartei(region * r)
lang = nf->lang;
strcpy(email, nf->email);
if (late) {
WINDOW *win = openwin(SX - 10, 2, "< Neue Partei einfügen >");
WINDOW *win = openwin(SX - 10, 3, "< Neue Partei einfügen >");
if(r->age >= 5)
late = (int) map_input(win, 2, 1, "Startbonus", -1, 99, r->age/2);
else
late = (int) map_input(win, 2, 1, "Startbonus", -1, 99, 0);
delwin(win);
}

View File

@ -134,7 +134,7 @@ void insert_selection(struct selection ** p_sel, struct selection * prev, char *
extern void read_newfactions(const char * filename);
extern void read_orders(const char * filename);
extern void read_dropouts(const char *filename);
extern void seed_dropouts();
extern void seed_dropouts(void);
#define sncat(b, s, size) strncat ((b), s, size - strlen (b))