orts / server

A real map datapack based on TFS 1.2 engine
98 stars 62 forks source link

Promotion bug in login.lua #267

Closed triath closed 9 years ago

triath commented 9 years ago

Bug: Any premium character will receive a promotion upon login even if the character never before got promoted. How to reproduce: Create a character without promotion and login. The character will automatically be promoted. What is expected:

As it is now the logic in the if statements for promotion in login.lua is rather weird actually.

dbjorkholm commented 9 years ago

I can't reproduce this issue. However I pushed a minor fix regarding that code.

TeFoOBr commented 9 years ago

https://github.com/orts/server/commit/be2fe44c6438e53c9ed47d0e35c19a594112f5de you removed the fix regarding ?

login.lua Minor fixes from TFS repo 15 days ago

elseif value == 1 then player:setVocation(promotion) end