ghazalghorabi / TDA553-lab1

0 stars 0 forks source link

CRITICAL: Scania can move while platform is raised #30

Closed martinjonsson01 closed 1 year ago

martinjonsson01 commented 1 year ago

If I were to call: scania.raiseplatform(10); scania.gas(1); scania.move(); then I could move Scania while the platform is raised, which should not be possible.

https://github.com/ghazalghorabi/TDA553-lab1/blob/01f3360df2ab6d8a3dae4522fac81312009bb5d9/src/Truck.java#L2