Mass reformatting (space after keywords)
This commit is contained in:
@@ -81,7 +81,7 @@ void adjust_monst_menu() {
|
||||
on_monst_menu[i] = -1;
|
||||
}
|
||||
for(i = 1; i < 256; i++) {
|
||||
if ((i == 1) || (univ.party.m_noted[i] > 0)) {
|
||||
if((i == 1) || (univ.party.m_noted[i] > 0)) {
|
||||
on_monst_menu[monst_pos] = i;
|
||||
monst_pos++;
|
||||
}
|
||||
@@ -157,8 +157,8 @@ void init_spell_menus()
|
||||
{
|
||||
short i,j;
|
||||
|
||||
for (i = 0; i < 2; i++)
|
||||
for (j = 0; j < 62; j++)
|
||||
for(i = 0; i < 2; i++)
|
||||
for(j = 0; j < 62; j++)
|
||||
on_spell_menu[i][j] = -1;
|
||||
|
||||
}
|
||||
@@ -176,30 +176,30 @@ void adjust_spell_menus()
|
||||
if(overall_mode == MODE_STARTUP || current_pc == 6)
|
||||
return;
|
||||
|
||||
for (i = 0; i < 2; i++)
|
||||
for (j = 0; j < 62; j++)
|
||||
for(i = 0; i < 2; i++)
|
||||
for(j = 0; j < 62; j++)
|
||||
old_on_spell_menu[i][j] = on_spell_menu[i][j];
|
||||
|
||||
spell_menu = [[menu_bar_handle itemWithTitle: @"Cast Mage"] submenu];
|
||||
id targ = [[spell_menu itemAtIndex: 0] target];
|
||||
|
||||
for (i = 0; i < 62; i++) {
|
||||
for(i = 0; i < 62; i++) {
|
||||
on_spell_menu[0][i] = -1;
|
||||
}
|
||||
for (i = 0; i < 62; i++)
|
||||
if (pc_can_cast_spell(current_pc,cSpell::fromNum(eSkill::MAGE_SPELLS,i))) {
|
||||
for(i = 0; i < 62; i++)
|
||||
if(pc_can_cast_spell(current_pc,cSpell::fromNum(eSkill::MAGE_SPELLS,i))) {
|
||||
on_spell_menu[0][spell_pos] = i;
|
||||
spell_pos++;
|
||||
}
|
||||
for (i = 0; i < 62; i++)
|
||||
if (on_spell_menu[0][i] != old_on_spell_menu[0][i])
|
||||
for(i = 0; i < 62; i++)
|
||||
if(on_spell_menu[0][i] != old_on_spell_menu[0][i])
|
||||
need_menu_change = true;
|
||||
if (need_menu_change) {
|
||||
if(need_menu_change) {
|
||||
while([spell_menu numberOfItems] > 2) {
|
||||
[spell_menu removeItemAtIndex: 2];
|
||||
}
|
||||
for (i = 0; i < 62; i++)
|
||||
if (on_spell_menu[0][i] >= 0) {
|
||||
for(i = 0; i < 62; i++)
|
||||
if(on_spell_menu[0][i] >= 0) {
|
||||
eSpell spell = cSpell::fromNum(eSkill::MAGE_SPELLS, on_spell_menu[0][i]);
|
||||
if((*spell).cost >= 0)
|
||||
sprintf(spell_name," L%d - %s, C %d",(*spell).level, mage_s_name[on_spell_menu[0][i]], (*spell).cost);
|
||||
@@ -216,25 +216,25 @@ void adjust_spell_menus()
|
||||
|
||||
spell_menu = [[menu_bar_handle itemWithTitle: @"Cast Priest"] submenu];
|
||||
|
||||
for (i = 0; i < 62; i++) {
|
||||
for(i = 0; i < 62; i++) {
|
||||
on_spell_menu[1][i] = -1;
|
||||
}
|
||||
for (i = 0; i < 62; i++)
|
||||
if (pc_can_cast_spell(current_pc,cSpell::fromNum(eSkill::PRIEST_SPELLS,i))) {
|
||||
for(i = 0; i < 62; i++)
|
||||
if(pc_can_cast_spell(current_pc,cSpell::fromNum(eSkill::PRIEST_SPELLS,i))) {
|
||||
on_spell_menu[1][spell_pos] = i;
|
||||
spell_pos++;
|
||||
}
|
||||
for (i = 0; i < 62; i++)
|
||||
if (on_spell_menu[1][i] != old_on_spell_menu[1][i])
|
||||
for(i = 0; i < 62; i++)
|
||||
if(on_spell_menu[1][i] != old_on_spell_menu[1][i])
|
||||
need_menu_change = true;
|
||||
if (need_menu_change) {
|
||||
if(need_menu_change) {
|
||||
while([spell_menu numberOfItems] > 2) {
|
||||
[spell_menu removeItemAtIndex: 2];
|
||||
}
|
||||
for (i = 0; i < 62; i++)
|
||||
if (on_spell_menu[1][i] >= 0) {
|
||||
for(i = 0; i < 62; i++)
|
||||
if(on_spell_menu[1][i] >= 0) {
|
||||
eSpell spell = cSpell::fromNum(eSkill::MAGE_SPELLS, on_spell_menu[1][i]);
|
||||
if ((*spell).cost >= 0)
|
||||
if((*spell).cost >= 0)
|
||||
sprintf(spell_name," L%d - %s, C %d",(*spell).level, priest_s_name[on_spell_menu[1][i]], (*spell).cost);
|
||||
else sprintf(spell_name," L%d - %s, C ?",(*spell).level, priest_s_name[on_spell_menu[1][i]]);
|
||||
NSString* str = [NSString stringWithUTF8String: spell_name];
|
||||
|
Reference in New Issue
Block a user