forked from github/server
telepath_see is a planned, but never realized, feature. delete it.
This commit is contained in:
parent
4bc8817056
commit
5a73fc80d8
1 changed files with 4 additions and 10 deletions
|
@ -455,7 +455,6 @@ size_t size)
|
||||||
const char *pzTmp, *str;
|
const char *pzTmp, *str;
|
||||||
building *b;
|
building *b;
|
||||||
bool isbattle = (bool)(mode == see_battle);
|
bool isbattle = (bool)(mode == see_battle);
|
||||||
int telepath_see = 0;
|
|
||||||
item *itm;
|
item *itm;
|
||||||
item *show;
|
item *show;
|
||||||
faction *fv = visible_faction(f, u);
|
faction *fv = visible_faction(f, u);
|
||||||
|
@ -553,7 +552,7 @@ size_t size)
|
||||||
}
|
}
|
||||||
/* status */
|
/* status */
|
||||||
|
|
||||||
if (u->number && (u->faction == f || telepath_see || isbattle)) {
|
if (u->number && (u->faction == f || isbattle)) {
|
||||||
const char *c = hp_status(u);
|
const char *c = hp_status(u);
|
||||||
c = c ? LOC(f->locale, c) : 0;
|
c = c ? LOC(f->locale, c) : 0;
|
||||||
bufp = STRLCPY(bufp, ", ", size);
|
bufp = STRLCPY(bufp, ", ", size);
|
||||||
|
@ -586,7 +585,7 @@ size_t size)
|
||||||
}
|
}
|
||||||
|
|
||||||
dh = 0;
|
dh = 0;
|
||||||
if (u->faction == f || telepath_see) {
|
if (u->faction == f) {
|
||||||
skill *sv;
|
skill *sv;
|
||||||
for (sv = u->skills; sv != u->skills + u->skill_size; ++sv) {
|
for (sv = u->skills; sv != u->skills + u->skill_size; ++sv) {
|
||||||
size_t bytes = spskill(bufp, size, f->locale, u, sv, &dh, 1);
|
size_t bytes = spskill(bufp, size, f->locale, u, sv, &dh, 1);
|
||||||
|
@ -597,7 +596,7 @@ size_t size)
|
||||||
}
|
}
|
||||||
|
|
||||||
dh = 0;
|
dh = 0;
|
||||||
if (f == u->faction || telepath_see || omniscient(f)) {
|
if (f == u->faction || omniscient(f)) {
|
||||||
show = u->items;
|
show = u->items;
|
||||||
}
|
}
|
||||||
else if (!itemcloak && mode >= see_unit) {
|
else if (!itemcloak && mode >= see_unit) {
|
||||||
|
@ -634,7 +633,7 @@ size_t size)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (u->faction == f || telepath_see) {
|
if (u->faction == f) {
|
||||||
spellbook *book = unit_get_spellbook(u);
|
spellbook *book = unit_get_spellbook(u);
|
||||||
|
|
||||||
if (book) {
|
if (book) {
|
||||||
|
@ -761,11 +760,6 @@ size_t size)
|
||||||
return dh;
|
return dh;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: telepath_see wird nicht berücksichtigt: Parteien mit
|
|
||||||
* telepath_see sollten immer einzelne Einheiten zu sehen
|
|
||||||
* bekommen, alles andere ist darstellungsteschnisch kompliziert.
|
|
||||||
*/
|
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
spskill(char *buffer, size_t size, const struct locale * lang,
|
spskill(char *buffer, size_t size, const struct locale * lang,
|
||||||
const struct unit * u, struct skill * sv, int *dh, int days)
|
const struct unit * u, struct skill * sv, int *dh, int days)
|
||||||
|
|
Loading…
Reference in a new issue